[jcifs] NbtAddress.getByName
Torsten Curdt
tcurdt at vafer.org
Wed Jul 12 16:14:50 GMT 2006
Anything wrong with this code?
final ServerInfo1 info1 = (ServerInfo1) info[i];
System.out.println("--");
System.out.println("name=" + info1.name);
System.out.println("comment=" + info1.comment);
System.out.println("serverType=" + info1.serverType);
final NbtAddress address = NbtAddress.getByName(info1.name);
System.out.println("dns name=" + address.getHostName());
System.out.println("ip address=" + address.getHostAddress());
For some reason the "getByName" is always throwing an UnknownHostException.
Any hints?
cheers
--
Torsten
More information about the jcifs
mailing list