Hello Does
http://www.javareference.com/jrexamples/viewexample.jsp?id=78 solve your problem? Cheers, Albert > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > On Behalf Of mogammad noordien > Sent: 24 March 2006 18:09 > To: [email protected] > Subject: [CTJUG Forum] HELP - InetAddress.getLocalHost().getHostAddress() > returns 127.0.0.1 > > > Hi there > > I am trying to retrieve the IP of a server but > InetAddress.getLocalHost().getHostAddress() returns 127.0.0.1 > instead of the real IP. I am running Fedora Core 4 with JDK1.4.2. > > I know this is an issue on linux but is there workaround for this, > because I dont want to edit the etc/hosts file. > > Any help would be appreciated > > cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum -~----------~----~----~----~------~----~------~--~---
