Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InetAddress.getLocalHost() returns NetBios name!

Status
Not open for further replies.

azrael808

Programmer
Jan 21, 2004
6
GB
Help!!!

I have been coding a distributed application using java rmi. Up until now everything has been going smoothly. Until I tried my software on windows XP. The line InetAddress.getLocalHost().getByName() produces a String object that represents the computers netbios name.

Has anybody encountered this before? And does anybody know of a solution? I really need the computers hostname (the one assigned by the DNS server).

Thank you in advance.

Peter Green
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top