Note that this can be misleading for people using proxy servers, since
you'll get the IP address of the proxy instead of the actual machine
in most cases. Same is true for NAT based IP addresses, you will
typically get a single IP address for a NAT subnet.

On Jan 6, 11:53 am, Aus <[email protected]> wrote:
> Fantastic!! works just fine
>
> Cheers mate!
>
> Aus
>
> On Jan 6, 9:10 am, Graham Weldon <[email protected]> wrote:
>
> > $_SERVER['REMOTE_ADDR'] should tell you what you need.
>
> > Cheers,
> > Graham
>
> > Aus wrote:
> > > I'm writing an application like no-ip.com , the user will send a _POST
> > > message includes the domain name to the website, and the website
> > > should map the domain name in the message with the source IP of the
> > > message. and update it in the database.
>
> > > so when someone have a computer at home with dynamic IP and he want to
> > > access it remotely, he can always know his new IP from this website.
>
> > > is it possible for a Webpage installed on a webhost server to
> > > determine the source IP of a packet?
>
> > > any advise from where should i start? where should i search about the
> > > subject?
>
> > > thanks alot !
>
> > > * i know how to do it if it's on my computer, i'll just make some C
> > > script to capture the packets and tell. but first, that's an over
> > > kill, second, it doesn't work in this case, i'm use a webhost server,
> > > not my own.- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to