NbtAddress.getByName

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

NbtAddress.getByName

Torsten Curdt-2
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