It is likely that the wrong address is resolved for the host name. Add this debugging to your test:
InetSocketAddress saddr =
new InetSocketAddress("waltraction.dhcp.samfundet.no", 135);
InetAddress addr = saddr.getAddress();
if (addr == null) {
System.out.println("Unresolved address.");
else
System.out.println(addr.getHostAddress());
Simple use of the address used may indicate a problem, but if not, update the question and get additional help.
source
share