'The port in the URL as an integer if it was present, `None`
otherwise.  This does not fill in default ports.'

@property
def port(self):

    try:
        rv = int(to_native(self._split_host()[1]))
        if (0 <= rv <= 65535):
            return rv
    except (ValueError, TypeError):
        pass
