Re: client IP address
Irmen de Jong <[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 21-1-2013 17:03, Andreas Kostyrka wrote: > Any way to get the client address of a request inside the called method? Nope, not at this time. > The only way that I've fathomed from the source code would be frame walking, but that's > neither portable beyond CPython, nor very elegant. Agreed. What is your use-case? Can't you solve it by making the client explicitly known to the server by means of a normal Pyro method call that tells the server about the client. You can then either pass the client's IP address or use any other means that identifies your client. See the 'shoppingcart' example that more or less does this by letting the server know about the real client's name... Irmen ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412