### WebSocket Remote Client IP

To determine client IP address for a websocket connection, use UpgradeRequest.RemoteAddress.
Example
`Sub Class_Globals
Private ws As WebSocket
' Selector defined in index.html in the www folder
Private lblInfo As jQueryElement
End Sub`
`Private Sub WebSocket_Connected (WebSocket1 As WebSocket)
ws = WebSocket1
Dim ip As String = ws.UpgradeRequest.RemoteAddress
lblInfo.SetHtml("

## Your IP address " & ip & "

")
Log(DateTime.Date(DateTime.now) & " " & DateTime.Time(DateTime.now) & " :: New connection with IP: " & ip)
End Sub`

Changed: 2018-04-07 18:03, Category: WebApps, File: T6C277M2087.htm, ID: 2087