You can force Java to resolve NetBIOS names using the JCIFS library. You can get it from http://jcifs.samba.org/ . Add this to your project, and then use this code to translate the host name into an IP address.
import jcifs.netbios.NbtAddress;
...
NbtAddress nbtAddress = NbtAddress.getByName(hostname);
InetAddress address = nbtAddress.getInetAddress();
String ipAddress = address.getHostAddress();
Emdot source
share