There is currently no way to get the IP address or port number for a websocket connection. The server class does have port and listeners properties that expose the locally bound addresses and ports (for TCP streams only), but there is no equivalent for handshakes or connections. WebSocketRequest and WebSocketConnection should expose IP addresses and ports for the local and remote endpoints whenever the underlying stream is TCP.
There is currently no way to get the IP address or port number for a websocket connection. The server class does have
port
andlisteners
properties that expose the locally bound addresses and ports (for TCP streams only), but there is no equivalent for handshakes or connections.WebSocketRequest
andWebSocketConnection
should expose IP addresses and ports for the local and remote endpoints whenever the underlying stream is TCP.