private static final HServerAddress HSA =
new HServerAddress("example.org:1234");
In my machine , It always failed because of DNS error.
The example.org is hard code. If we can add a function to get hostname.
It likes:
public static String gethostname()
{
String hostName = null;
try{
hostName = java.net.InetAddress.getLocalHost().getHostName();
}
catch(java.net.UnknownHostException uhe)
{
......
}
return hostName;
}
private static final HServerAddress HSA =
new HServerAddress(gethostname() +":1234");