© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
Iceman228

TcpClient connection

using TcpClient tcpClient = new(domain, port);
using TcpClient tcpClient = new(domain, port);

When I let this run on my local machine, it works fine. But on our server, I get System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10060). But only for some websites.
I am using Port 443. Goal is to read the certificate with SslStream afterwards.
When I tested it on the system of a colleague, he first had to run the program with Visual Studio, otherwise the exe produced the same errors for some websites as on the server. I have no idea what the issue could be.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

TcpClient being Disposed
C#CC# / help
2y ago
SocketException, TCPListener, TCPClient reason?
C#CC# / help
2y ago
How do I properly set up TcpClient
C#CC# / help
12mo ago