SyntaxFix
Write A Post
Hire A Developer
Questions
ListenForClients is getting invoked twice (on two different threads) - once from the constructor, once from the explicit method call in Main. When two instances of the TcpListener try to listen on the same port, you get that error.
ListenForClients
Main
TcpListener