Detecting the current IP through chrome extension?

后端 未结 3 1083
情书的邮戳
情书的邮戳 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:14

    YES! You can get the IP addresses of your local network via the WebRTC API. You can use this API for any web application not just Chrome extensions.

    
    
                                     
                  
提交回复
热议问题