Hi all,

FixED it, i apperantly got updated with ip6 by my isp while restarting pc, so whoever has this problem aswell, look at the red correction in te code.

So when i upgraded to .500 i get this error

Running script C:\Program Files (x86)\HomeSeer HS3\scripts\Server-checker.vb :Exception has been thrown by the target of an invocation.Object reference not set to an instance of an object.

Private Function GetBestInterfaceManaged(ByVal address As IPAddress, ByVal port As Integer) As NetworkInterface
Dim socket As Socket = New Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.IP)
Dim outgoingInterface As NetworkInterface = Nothing
socket.Connect(New IPEndPoint(address, port))
If socket.Connected Then ' find the outgoing NIC
Dim interfaces As List(Of NetworkInterface) = NetworkInterface.GetAllNetworkInterfaces.ToList()
For Each nic As NetworkInterface In interfaces
Dim properties As IPInterfaceProperties = nic.GetIPProperties
Dim unicastAddress As UnicastIPAddressInformation = nothing

For Each unicastAddress in properties.UnicastAddresses
If unicastAddress .Address.Equals(DirectCast(socket.LocalEndPoint, IPEndPoint).Address) Then
outgoingInterface = nic
End If

End If
Return outgoingInterface
Catch ex As SocketException
Return Nothing
End Try
End Function