Possible Duplicate:
ip address of client system
I want to learn local IP address of client. I can do it with Java applet. But I don't want to do it with applet. Is there any method to know local ip with javascript?
Possible Duplicate:
ip address of client system
I want to learn local IP address of client. I can do it with Java applet. But I don't want to do it with applet. Is there any method to know local ip with javascript?
In PHP the user's IP is stored in _SERVER['REMOTE_ADDR']
. In javascript, you can just call a php page with ajax that prints this information.
Look at this already answered question: How to get client's IP address using javascript only?. I think it'll get you where you want to go with Javascript.
This page shows you how to do it with PHP: http://www.teachmejoomla.net/code/php/remote-ip-detection-with-php.html.