Try to solve java.net.SocketException