TODO: java.net.SocketException: Invalid argument