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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Application URL" Watch "Application URL" New topic

Application URL

Arijit Bardhan

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

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

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:
subject: Application URL
It's not a secret anymore!