-1

How can solve this problem in C#?

enter image description here

Exception:

connected party did not properly respond after a period of time, or established connection failed because connected host has failed

halfer
  • 19,824
  • 17
  • 99
  • 186

1 Answers1

0

There are many possibilities, but the most likely one is exactly as it says - your program cannot connect to 10.10.34.35 Port 443. Firewalls, routing, DNS, or simply a mistyped IP address are all possible. Best way to diagnose this is to open Powershell and type

Test-NetConnection -Computer 10.10.34.35 -Port 443

This will test to see if your computer can connect to that TCP endpoint. If Powershell cannot connect then your problem is not in your C# but its a network issue.

PhillipH
  • 6,182
  • 1
  • 15
  • 25