"Randy Webb" <Hi************@aol.com> skrev i meddelandet
news:t_********************@comcast.com...
Mats wrote:
Hi!
I would like to get a web client's IP where the client is behind a
firewall. I googled but hasn't found any solution with javascript that work's.
Thats because there is no solution to obtaining the IP address via
Javascript.
There seems to be a java applet that can do this, but i would like the
applet to put it into a "hidden" tag or into a textbox on the HTML page, so
when the user clicks "OK" it will be posted to my PHP script.
And why do you think you need my IP Address? It's worthless to you as it
changes at least 3 times a day.
I don't need your IP, i need the IP of the machines of the sites where i
work. I'm about doing an inventory of IP adresses. I thought it would save a
lot of work if i could email a link to a webpage where everybody could fill
in their name/location/section and press submit and all went nicely into a
database. It's too complicated for many users to have to find out their own
IP (this involves about 200 users).
This works fine however on our local and normally routed net's because we
don't have a firewall between them and i can use PHP's
$_SERVER['REMOTE_ADDR'], however som offices are linked up to us by VPN and
ADSL through the internet and then i only get their dynamic IP from the
outside of their firewall.
Any ideas, link's, tip are most welcome!
Stop trying to determine something that doesn't matter to begin with.
Thank's!
Welcome.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq