socket.remoteAddress


远程 IP 地址的字符串表示形式。 例如,'74.125.127.100''2001:4860:a005::68'。 如果套接字被破坏(例如,如果客户端断开连接),则值可能是 undefined

The string representation of the remote IP address. For example, '74.125.127.100' or '2001:4860:a005::68'. Value may be undefined if the socket is destroyed (for example, if the client disconnected).