def convert_ip_port(ip, some_port):
    """
    Helper: Get ip and port, but extract port from ip if ip was as ip:port

    :param ip:
    :param some_port: default port
    :return: (ip, port)
    """
    if ':' in ip:
        ip, some_port = ip.split(':')
    return ip, some_port
