How to fixbThe requested address is not valid in its context

Al 20 Reputation points
2023-10-25T06:03:50.7633333+00:00

I am using .net 5. I am trying to establish a connection via a Socket in corporate network. But on connect there is an Exception with a topic header message. There is no nslookup for a server ip, and httpclient sent same request successfully, but need to use Tcp. I found several solutions over network https://www.techinpost.com/the-requested-address-is-not-valid-in-its-context/ but I could not say the it is applicable to my situation, because I do not know that and prefer to save my office pc solid.

Developer technologies | .NET | Other
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.