[Twisted-Python] anyway to know client address in XMLRPC?

wang wei wgwigw at gmail.com
Thu Mar 29 03:22:00 EDT 2007

hello, I need to know the client address connected to my Twisted XMLRPC
server, is there any way?
the fellow code couldn't work in my machine.

class Examle(xmlrpc.XMLRPC):
    """An example object to be published."""

    def _getPeerAddress(self):
            return self.request.getClientIP()

    def render(self, request):
        self.request = request
        xmlrpc.XMLRPC.render(self, request)

the result is said:
"C:\Python24\lib\site-packages\twisted\web\server.py:272: UserWarning:
Warning! r
equest.finish called twice.
then how can I get client address in twisted?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20070329/b87355fc/attachment.htm 

More information about the Twisted-Python mailing list