Private Sub WebSocket_Connected (WebSocket1 As WebSocket)
Dim RemoteIP As String = WebSocket1.UpgradeRequest.RemoteAddress
End Sub
I needed this information, so I wrote this question instead of publishing it in the thread Snippets since it is a simple command.
In this way it is easily findable.
I also found that you can get it through ServletRequest but this (ServletRequest) is not described.
Basta prendere uno dei tanti esempi di web server di Erel e scrivere quella riga nell'evento WebSocket_Connected di una classe che gestisce il web socket.
You can simply use one of many Erel's web server on site and add that line in the WebSocket_Connectd event of a websocket handler class.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.