'Create a Server from a given URL'

@classmethod
def from_url(cls, url):

    urlinfo = urlparse(url)
    proto = urlinfo.scheme
    ip = (urlinfo.hostname or '')
    port = urlinfo.port
    if (not port):
        if (proto == 'https'):
            port = 443
        else:
            port = 80
    return cls(proto=proto, ip=ip, port=port, base_url=urlinfo.path)
