[Twisted-Python] pb server how to get client IP address
Bob Ippolito
bob at redivi.com
Fri Feb 13 14:26:22 MST 2004
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
More information about the Twisted-Python
mailing list