Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

IP does not work but hostname works in the URL from browser  RSS feed

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a jboss application server running on a server having a certain dns name say abc.com. From some external machine, when I ping abc.com, it resolves to a certain IP address.
Now, when I hit a URL from a web browser from the external machine with abc.com, the url works (i.e. the application runs and return the response). However, when I use the IP address(to which abc.com resolves when a ping command is issued) instead of abc.com, the application does not respond. Why is it that when a ping is issued on abc.com, the IP address that it resolves to, when it is used it does not work, however it works only with abc.com?

Can anybody explain me how does this DNS and IP address resolution work internally at network side?

Regards,
Pankaj
 
Sheriff
Posts: 23692
50
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got lost in there... you have two places where you're trying to access a location, right? You've got a web browser and an application, if I understand it right. I don't understand whether they are running on the same machine, though. I also think that the application is also the location, but I'm not sure of that.

So I think it would help if you clarified who is trying to do what to whom, and what happens in each case. (I'm also not clear on what "does not respond" means, so that could be clarified too.)

(And by the way I found it confusing that you used the name of a well-known television network as your "example" name. I must be easily confused.)

 
Bartender
Posts: 2038
273
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give examples of the name-based and IP-based URLs that behave differently?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!