':return: The TCP port that is going to be used to contact the remote
end.'

def get_port(self):

    net_location = self.get_net_location()
    protocol = self.get_protocol()
    if (':' in net_location):
        (host, port) = net_location.split(':')
        return int(port)
    elif (protocol.lower() == 'http'):
        return 80
    elif (protocol.lower() == 'https'):
        return 443
    else:
        return 80
