• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between serverName and host name  RSS feed

 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between serverName and host name.
serverName : it returns "localhost"
host name : this return "localhost:8080"

Can someone explain how are these values returned is different
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One has the port number.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!