[mod_python] Remote IP

Jim Gallacher jpg at jgassociates.ca
Thu Mar 29 08:36:11 EST 2007

Olaf Stein wrote:
> Hi All,
> Is there any built in function in mod_python to obtain the remote IP
> address. Or any other way?

The Connection object is your friend.


def handler(req):
     ip = req.connection.remote_ip


More information about the Mod_python mailing list