My application is working in google chrome.but after getting client side ip using library 'public-ip'. It has stop working in internet explorer(11). Any one have solution for that?.
Asked
Active
Viewed 4,045 times
-1
-
1"It has stop working in internet explorer(11)" -- Does it work in other browser? Is there any error message in IE11 console? Any screenshot on how it "stop working"? – shaochuancs Mar 01 '19 at 14:50
1 Answers
-1
'public-ip' is for node js (server) not for client side.
To get public IP,
- Make your own server like node js and use 'public-ip', then provide REST API for getting IP.
- Just use existing API (https://jsonip.com/) and it will return client's IP. To avoid cross domain problem, you can also use jsonp

Sangwon Choi
- 218
- 2
- 11
-
Due to some reason, I cannot do this on server. I need a way to get client IP from the client-side itself. Can the existing API (https://jsonip.com/) be used on the client-side? – Vatsal Harde Sep 18 '18 at 13:01