web项目获取访问者内网Ip

 直接上代码:通过WebRTC可以获取到用户的内网ip和外网Ip



    
        
    
    
        

Demo for: https://github.com/diafygi/webrtc-ips

This demo secretly makes requests to STUN servers that can log your request. These requests do not show up in developer consoles and cannot be blocked by browser plugins (AdBlock, Ghostery, etc.).

Your local IP addresses:

    Your public IP addresses:

      原文链接:https://blog.csdn.net/u013332124/article/details/46928479

      你可能感兴趣的:(PC端)