def get_ip_port_kwargs(ipString):
    """ Parse IP and port into kwargs suitable for reactor.listenTCP """

    ip, port = ipString.split(':')
    ip, port = ( '' if ip == '*' else ip ), int(port)

    return dict(interface=ip, port=port)