Search code examples
python-3.xpyro4

Python Pyro4 - Get client IP


I want the server to get the caller's IP in any way. E.g. client calls function on server that checks his IP.

Also I want to know how to get my own external IP using pure Python or built-ins.


Solution

  • Answers are in the manual.

    Pyro4.current_context

    Pyro4.socketutil.getIpAddress