can you test the java sample with a port other than 55555 or 55443 to see if it is the code or the connection?