def convert_ip_port(ip):
    """
    Get ip and port, but extract port from ip if ip was as ip:port
    :param ip:
    :return: (ip, port)
    """
    port = 5658
    if ':' in ip:
        ip, port = ip.split(':')
    return ip, port
