I have a Pythonic HTTP server which should determine the IP address of the client. How do I do this in Python? Is there a way to get request headers and extract it from there?
PS: I am using WebPy.
Use web.ctx:
class example: def GET(self): print web.ctx.ip
More here
web.env.get ('REMOTE_ADDR')
Source: https://habr.com/ru/post/1710221/More articles:Server for a corner-based multiplayer game - .netButton title does not display DatagridView - vb.netCreating a binding to the application? - cSubsonic: Clown Levels - n-tierHow to create a charting application in .NET? - user-interfaceHow does fogbugz make ajax add case? - ajaxConvert Swing application to JavaFX - javawhen the visual studio is in full screen mode, how to bring the taskbar "always on top"? - visual-studioHow can I reliably track the processes of a child / grandson in a POSIX system? - linuxТочки останова, которые не работают в Visual Studio 2008 - visual-studio-2008All Articles