aspose file tools*
The moose likes Java in General and the fly likes Application URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Application URL" Watch "Application URL" New topic
Author

Application URL

Arijit Bardhan
Greenhorn

Joined: Sep 19, 2005
Posts: 5
Currently i am facing an odd problem
if the application is accessed by machine s ip address
ex: http://123.342.123.124:<port number>/Folder structure
and by machine s name,
it is acting differently in both the cases
ex: http://<machine name>:<port number>/Folder structure

what me the reason behind this?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"Acting differently"? What exactly do you mean by this?

HTTP access to any resource is always done by IP address. When you use a machine name somewhere that name is mapped to an IP address. Try pinging your machine name - see if you get the same IP address you expect.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Which web server are you using? It is possible to map (for example) multiple domain names to a single IP and use this to serve different content for each. You could be seeing a variation on the same theme where the IP and machine name are handled differently.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application URL