[Soap-Python] Getting client's IP address

azurIt azurit at pobox.sk
Sun Oct 16 23:29:11 CEST 2011


thnx. for others:

ctx.transport.req_env.get("REMOTE_ADDR", "unknown")

azur


______________________________________________________________
> Od: "Burak Arslan" <burak.arslan at arskom.com.tr>
> Komu: azurIt <azurit at pobox.sk>
> Dátum: 16.10.2011 23:14
> Predmet: Re: [Soap-Python] Getting client's IP address
>
> CC: soap at python.org
>On 10/16/11 23:45, azurIt wrote:
>> Hi,
>>
>> i'm trying to get client's IP address with rpclib running under Apache + mod_wsgi but without success. Any hints ? Thnx.
>
>you have the wsgi environment at ctx.transport.req_env.
>
>look at:
>
>WsgiMethodContext documentation at:
>http://arskom.github.com/rpclib/reference/server.html
>https://github.com/arskom/rpclib/blob/master/src/rpclib/server/wsgi.py#L227
>
>best,
>burak
>


More information about the Soap mailing list