• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

InetAddress

 
Shaili Suri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need help in resolving IP address of a supplied server name. Currently, the application is using InetAddress.getHostAddress() to extract IP address from provided server name.
The problem here is this returns the private IP address of the server name. If I need the public IP address, then what should I use?
Thanks,
Shaili
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you working on a clustered system? If so, you need the name of the service that uses the logical IP you're trying to retrieve.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic