def getHost(self):
        host, port = self.socket.getsockname()[:2]
        return self._addressType('TCP', host, port)
Returns an IPv4Address.
dataset/ETHPy150Open twisted/twisted/twisted/internet/iocpreactor/tcp.py/Port.getHost