Test connecting to some port without any listener.