Extracting IP from request in Python
Question
I have a Pythonic HTTP server that is supposed to determine client's IP. How do I do that in Python? Is there any way to get the request headers and extract it from there?
PS: I'm using WebPy.
Solution
OTHER TIPS
web.env.get('REMOTE_ADDR')
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow