Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getting IP address of localhost in ubuntu...

843790Jul 21 2010 — edited Jul 21 2010
I know this is kind of stupid but I am not able to get the IP address of localhost in ubuntu...
Inetaddress.getLocalHost.getHostAddress() i returning 127.0.1.1.... while in windows it returns the proper IP address....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2010
Added on Jul 21 2010
1 comment
431 views