-1

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?.

Vatsal Harde
  • 1,538
  • 3
  • 15
  • 17
  • 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 Answers1

-1

'public-ip' is for node js (server) not for client side.

To get public IP,

  1. Make your own server like node js and use 'public-ip', then provide REST API for getting IP.
  2. 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