Please include the list when replying.
Fahad Pervaiz wrote:
Thanks for the reply!!!
I need to get the internal IP of the client. Is it possible to get it
via javascript?? I have tried to search some scripts but found nothing
useful.
No, you can't. Javascript runs in a sandbox that limits what it can do.
You could do this by utilising other client-side technology such as
ActiveX controls or possibly Java. Both would require the user to give
them permission to access that information.
However, think about what you are trying to do. Say my local IP is
192.168.0.5. I got through a gateway (NAT server) at 192.168.0.1 which
proxies my connections out to the internet with the public IP 80.1.1.1.
Your server, on the internet, cannot access my local machine
(192.168.0.5) from outside my network unless the gateway (NAT server)
forwards ports through to it, which is highly unlikely. So even if you
could get my local IP it would not be of any use to you.
Why don't you tell us what you are actually trying to do - there may be
a better way to do it.
-Stut
--
http://stut.net/
On 7/5/07, *Stut* <stuttle@xxxxxxxxx <mailto:stuttle@xxxxxxxxx>> wrote:
Fahad Pervaiz wrote:
> Hello,
>
> I want to get the actual IP of a client behind NAT or a Firewall.
Is there
> anyway to traverse NAT to get the actuall/real IP of the client
to check
> weather its reachable directly or not.
>
> OR Is there anyother way to do that. Plz suggest
No, you can't. And even if you could it wouldn't do you any good. Think
about what NAT does and you'll realise why.
As for firewalls... if there was a way around it there'd be no point in
having the firewall.
-Stut
--
http://stut.net/ <http://stut.net/>
--
Regards
Fahad Pervaiz
www.ecommerce-xperts.com <http://www.ecommerce-xperts.com>
(Shopping Cart Applications, Framework
for Multilingual Web Sites, Web Designs)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php