0

How can service worker get the remote ip address of a request?

devtools screenshot

Marco Castelluccio
  • 9,466
  • 2
  • 31
  • 46
cson
  • 37
  • 5

1 Answers1

0

Check this answer.

You have many services you can call and get your IP as response.

One example:

$.get("http://ipinfo.io", function(response) {
    console.log(response.ip);
}, "jsonp");
Community
  • 1
  • 1
Ygalbel
  • 4,714
  • 21
  • 30