Script to test TCP connections.