help - InetAddress.getHostName() returns the ip address
Hi,
After updating two windows XP computers witht the latest windows updates the InetAddress.getHostName() stoped returning the remote computers name and instead returns the ip address. This is how it worked :
rx = a custom DataPacket class
public InetAddress from;
System.out.println("From: "+ (rx.from.getHostName() + "/" + rx.from.getHostAddress()) + " " + receivedMessage + "\r\n");
printed - From: AUTOTEST1/192.1.3.60 test message
now it prints this - From: 192.1.3.223/192.1.3.223 test message
Is there an alternate way of getting a computers host name or is there a work around i could implement?
I need the computers host names as this is a fault logging program and without the computer name the users will not know who they are sending the mesage to as it displays ip addresses and not the computer name
Thanks,
sjs1985

