How to get the both ip address while accessing to browser (www. google.com). google side router ip address and my own router ip address .I have already tried to get my ip address from javascript but i am not able to get browser end router ip address. I am stuck with my project.
Asked
Active
Viewed 30 times
0
-
you can not http://stackoverflow.com/questions/391979/get-client-ip-using-just-javascript – NullPoiиteя Nov 06 '15 at 05:37
-
if you need IP addresses, perhaps you need to rethink your code altogether – Jaromanda X Nov 06 '15 at 05:37
-
There's no built-in way to get your public IP. You would have to call an external API, and it can detect your public IP. – Barmar Nov 06 '15 at 05:39
-
1You can write a simple API on your server that does it. – Barmar Nov 06 '15 at 05:39
-
could anybody help me how to write api code in my server that is also fine if there is no such codes. – Narayan Khadka Nov 06 '15 at 05:46
-
ok thanks i understand. i would like to close this case. – Narayan Khadka Aug 22 '16 at 07:55