import socket


def listen(host, port):
    """ Create a TCP/IP socket listen for incoming connections """
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

    # Bind the socket to the port
    print('[SERVER LOG] starting up on {} port {}'.format(host, port))
    server_address = (host, port)
    sock.bind(server_address)

    sock.listen(1)
    return sock