there are some shortcomings of the http protocol. If there is no proxy the address is in request.env.remote_addr If there is a proxy the addresses been proxied are in request.env.http_x_forwarded_for
But you do not know if there is a proxy in between you and the client. web2py looks in both tries to figure out it and stored the best guess for client address in request.client. Problem. request.env.http_x_forwarded_for can be spoofed thus request.client may be spoofed too. This is not a web2py problem. This is a problem of the HTTP protocol. Massimo On Dec 20, 6:18 pm, vince <[email protected]> wrote: > request.client > > On Dec 21, 7:52 am, "Phyo Arkar" <[email protected]> wrote: > > > AHH no no this . it is just server ip:port .. how can i find browser > > client's IP ? > > > On Sat, Dec 20, 2008 at 11:49 PM, Phyo Arkar > > <[email protected]>wrote: > > > > Got it , it is > > > > request.env.http_host > > > > Where can i find all the properties of Request Response and Session > > > objects? > > > > Regards, > > > > Phyo. > > > > On Sat, Dec 20, 2008 at 11:30 PM, Phyo Arkar > > > <[email protected]>wrote: > > > >> Hi All; > > > >> How can i know the IP address of the Client who access the Page? Is that > > >> from Request object right?But which ? > > > >> Regards, > > > >> Phyo. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

