0

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

devtools screenshot

Marco Castelluccio
  • 10,152
  • 2
  • 33
  • 48
cson
  • 37
  • 6

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
  • 5,214
  • 1
  • 24
  • 32