'Check if client can connect to server using tcp transport'

def attempt_connection(self):

    iface = 'tcp://127.0.0.1'
    port = self.server.bind_to_random_port(iface)
    self.client.connect(('%s:%i' % (iface, port)))
