[Twisted-Python] XMLRPC getting calling host

Andrew Bennetts andrew-twisted at puzzling.org
Tue May 27 22:51:07 MDT 2003


On Wed, May 28, 2003 at 06:22:16AM +0200, Heiko Wundram wrote:
> 
> I've come to the point where I need to query the IP an XMLRPC request
> came from. In UDP, you get it served when the call to datagramReceived
> comes through, but I've not seen any attribute of the XMLRPC class, or
> of the underlying Resource class which states anything about how to get
> this attribute. Is it possible? And if, how?

Request objects have a .getClientIP method.

-Andrew.





More information about the Twisted-Python mailing list