def getHost(self):
        """
        Returns an L{IPv4Address} or L{IPv6Address}.

        This indicates the server's address.
        """
        addr = _getsockname(self.socket)
        return self._addressType('TCP', *addr)

        Returns an L{IPv4Address} or L{IPv6Address}.

        This indicates the server's address.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/tcp.py