Detecting the current IP through chrome extension?

后端 未结 3 1084
情书的邮戳
情书的邮戳 2021-01-15 01:54

My Chrome extention needs to know what is the IP of the machine that it is running on (the real world IP) Is there a easy way of doing it?

3条回答
  •  无人共我
    2021-01-15 02:17

    Yes, but because of NAT you can not know it without network request. You can try my http://external-ip.appspot.com/, which I made for the same task

提交回复
热议问题