tufanv Expert Licensed User Longtime User Jan 11, 2021 #1 Hello, Using jserver in my websocket server. Is it possible to get client's ip address when they are connected? I couldn't figure a way to get it. Thanks
Hello, Using jserver in my websocket server. Is it possible to get client's ip address when they are connected? I couldn't figure a way to get it. Thanks
OliverA Expert Licensed User Longtime User Jan 11, 2021 #2 Try: B4X: Private Sub WebSocket_Connected (WebSocket1 As WebSocket) Log(WebSocket1.UpgradeRequest.RemoteAddress) End Sub Note: UpgradeRequest returns a ServletRequest object Upvote 0
Try: B4X: Private Sub WebSocket_Connected (WebSocket1 As WebSocket) Log(WebSocket1.UpgradeRequest.RemoteAddress) End Sub Note: UpgradeRequest returns a ServletRequest object
tufanv Expert Licensed User Longtime User Jan 11, 2021 #3 OliverA said: Try: B4X: Private Sub WebSocket_Connected (WebSocket1 As WebSocket) Log(WebSocket1.UpgradeRequest.RemoteAddress) End Sub Note: UpgradeRequest returns a ServletRequest object Click to expand... Works perfect Thanks Oliver ! Upvote 0
OliverA said: Try: B4X: Private Sub WebSocket_Connected (WebSocket1 As WebSocket) Log(WebSocket1.UpgradeRequest.RemoteAddress) End Sub Note: UpgradeRequest returns a ServletRequest object Click to expand... Works perfect Thanks Oliver !