I need to getting the client ip address using javascript.Actually,our connection provider ip is something like this 122.172.127.200.We are putting different private ip like 192.168.10.1,192.168.10.2 and so on..i can retrieve 192.168.10.1,but how can i retrieve the 122.172.127.200 using php or javascript.SSI already enabled.Please help me….Thanks
I need to getting the client ip address using javascript.Actually,our connection provider ip is
Share
You can’t without JavaScript on it’s own.
But as Pekka, you can get it from any server-side script (which actually can write it into the JavaScript before it’s sent to the client).
You can also get it via Ajax (xhr if it’s on you domain or DSL if you find a service providing IPs in JSON format).