'Get local IP
socket.Initialize(8888,"")
myLocalIP = socket.GetMyIP
Log(DateTime.Time(DateTime.Now) & " MyIP is " & myLocalIP)
Log("My IP = "&myLocalIP)
Dim components() As String
components = Regex.Split(".",myLocalIP)
Log("Components len = "&components.Length)
If components(2) = "20" Then
serverIP = "192.168.20.128"
Else
serverIP = "192.168.1.128"
End If
socket.Close