© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
55 replies
Gunshot

TCP Help again...

Hi i got a issue right so like basically i got a listener on a port and i can connect to it write data to it and all, on one .cs form but when i try to do the same from a different .cs file it says its actively refusing the connection???

the code that works is the first photo and the code im using is the second. I wont be using the former in the final code but i want it to work in the latter.

the second is the exact same code as the first but it is being actively refused as in the third screen shot. the final screen shot is what it is supposed to do.
image.png
image.png
image.png
image.png
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

✅ C# TCP connections Help
C#CC# / help
14mo ago
Help me again!
C#CC# / help
4y ago
❔ TCP networking
C#CC# / help
3y ago
❔ Sockets - TCP
C#CC# / help
4y ago
Next page