• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ranch Hand
Posts: 75
  • 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: 23439
46
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: 1733
236
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!