© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago
danilwhale

System.InvalidOperationException The operation is not allowed on non-connected sockets

i have client and server, client creates and connects tcp client to server tcp listener, client tcp closes only on exit, when i click it sends data to server listener and server resends for every connected client, and closes streams not clients, but client disconnects from server. i cant found reason, so here code for client (game): https://pastebin.com/tSJ2tAMH, and for server: https://pastebin.com/BWiQRsqQ
Pastebin
asdasdafds - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
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

✅ System.InvalidOperationException: The LINQ expression
C#CC# / help
2y ago
❔ Socket.Connected for listening sockets?
C#CC# / help
3y ago
System.Net.Sockets spookyness
C#CC# / help
4y ago
code generator: Exception type "System.InvalidOperationException"
C#CC# / help
2y ago