[Twisted-Python] pb server how to get client IP address

Hi I am making a game server using twisted and using the pb both on the server and client. I have a question on how to get ip address of the clients that connects to the server. I want to log the client ip address on the server. Have anyone any idea on how to do this I cant find any information on this in the api documents. Thanks /Martin http://stenhard.net <http://stenhard.net/>

On Feb 13, 2004, at 3:57 PM, Martin Stenhård wrote:
I am making a game server using twisted and using the pb both on the server and client. I have a question on how to get ip address of the clients that connects to the server. I want to log the client ip address on the server. Have anyone any idea on how to do this I can’t find any information on this in the api documents.
protocol.transport.getPeer() For more information, pydoc twisted.internet.interfaces.ITCPTransport -bob
participants (2)
-
Bob Ippolito
-
Martin Stenhård