Skip to content

SocketException being thrown #212

Closed Answered by kallencst
kallencst asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to resolve the problem. I had a VPN connection that was live. I had tried disconnecting, but this resulted in an exception. Eventually I created a new user and used this in place of "guest", and this allows the code to run when the VPN is disconnected. The issue occurs in RoutingClient.LookupConnection, when the VPN is connected, Dns.GetHostEntryAsync will return the VPN IP address as the first entry in the Address List, at least for me this is an IPV6 address that won't work when trying to connect a socket in Connection.Create. The code works with the "guest" user if you bypass the Dns.GetHostEntryAsync call.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Gsantomaggio
Comment options

Answer selected by kallencst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants