Possible Duplicate:
Get Client IP using just Javascript?
i am developing a online chat application, for that i have a server with static ip.
i want to give only small javascript to include in client website.
here my requirement is obtain ip address and the location of the user of the website.
websites my in in any language like php,jsp,html,asp….for any wesite my script is same
please help me in this issue to solve.
No need to use AJAX.
In your PHP:
That’s the connected client’s IP, assuming they’re not using a Proxy and whatnot.
Add this IP to a variable in your script if you need to use it in your JS.