[Twisted-Python] anyway to know client address in XMLRPC?
![](https://secure.gravatar.com/avatar/29a0aa8a2d21daab540e6ea485ed7c4f.jpg?s=120&d=mm&r=g)
March 29, 2007
7:22 a.m.
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. http.Request.finish(self)" then how can I get client address in twisted?
6533
Age (days ago)
6533
Last active (days ago)
2 comments
2 participants
participants (2)
-
Remi Cool
-
wang wei