[Twisted-Python] Getting peer IP address from Perspective Broker
![](https://secure.gravatar.com/avatar/17ef6b5b517a6a5a9c15bc86d7b6bade.jpg?s=120&d=mm&r=g)
July 25, 2005
8:53 a.m.
Is there an accessible method to retrieve a peer's ip address from within pb? I just want to log it. I read the Faq and see how to do it when subclassing protocol i.e.: class MyProtocol(protocol.Protocol): def connectionMade(self): print "connection from", self.transport.getPeer() I'd appreciate it if someone can point me in the right direction. TIA
7144
Age (days ago)
7145
Last active (days ago)
1 comments
2 participants
participants (2)
-
Itamar Shtull-Trauring
-
J French