Dear vince ;

Thanks a lot , after posting last message , i found that correct one is
request.vars.client.

Dear Massimo;

Thanks . I am on an interesting project , it is for p2p based Web Camera via
just the browser.

So what i am doing now is NAT Tranversal using Java Applet Via STUN
Protocol.

When STUN Negotiation is done and Applet got the response from STUN server ,
it Report back to the Server which is running web2py via HTTPOST. Then it
stores the IP on the Database.

It Reports Local IP , NAT Type , Interface , Public IP

But in cases of NAT Tranversal cannot accomplish (example , UDP blocked) We
cannot know the External IP of the Client.

For that case My Idea is to recieve the IP Address of External IP via Web2py
.

This will atleast get the Extermal IP of the Client , Whether  it is Proxied
or NATted.




Regards,

Phyo.



On Sun, Dec 21, 2008 at 6:50 AM, mdipierro <[email protected]> wrote:

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to