<div><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><strong style="font-weight:normal;"><span style="background-color:transparent;color:#000000;font-family:arial;font-size:14.6667px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">Hi everyone! I’m new to Twisted and mailing lists, so please excuse me if I make some mistake. My question maybe trivial, but as far as I know it is neither explained on the twistedmatrix.com web site nor easily resolved using Google search. The question is: how can Perspective Broker server get an IP address of the client the server is being called by? For example, let’s consider first PB server example on the </span><a style="text-decoration:none;" href="http://twistedmatrix.com/documents/current/core/howto/pb-usage.html"><u style="background-color:transparent;color:#1155cc;font-family:arial;font-size:14.6667px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;">Using Perspective Broker</u></a><span style="background-color:transparent;color:#000000;font-family:arial;font-size:14.6667px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;"> page, pbsimple.py. Inside remote_echo method of the Echoer class, how one could obtain IP address of a client that is calling this method?</span></strong></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><strong style="font-weight:normal;"><span style="background-color:transparent;color:#000000;font-family:arial;font-size:14.6667px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;">One of solutions I found in Google requires client to pass some pb.Referenceable object as a parameter to a call, and then server is able to get client’s IP address by calling broker.transport.getPeer().host on that object. But passing pb.Referenceable just for purpose of getting caller’s IP address seems not very convenient. Are there more simple way?</span></strong></p></div><div> </div><div>-- </div><div>Kind regards, Roman Mescheryakov</div><div> </div>