don't connect via tcp in main thread
change test port to something that doesn't conflict with a server running on the same machine