使用socket.io时是否可以在客户端(在浏览器中)获取客户端的IP地址?单独使用纯Javascript无法获得客户端的IP地址。

有帮助吗?

解决方案

There is no way, unless you send the IP address over the socket from the server side.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top