• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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

Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?

Posts: 23968
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.)

Saloon Keeper
Posts: 2268
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?
Ruth Stout was famous for gardening naked. Just like this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!