TCP listener on several ports

Beginner23

New member
Joined
Oct 27, 2018
Messages
3
Programming Experience
Beginner
Dear Members.

I need you help. I have searched for an TCP listener example where the server listen two two port at the same time. But I have not found any. Can you help me?

/B
 
The solution should be fairly obvious: just create two TcpListener objects. When a TcpListener receives a connection request, it creates a Socket or a TcpClient that has no further connection to the listener anyway so it doesn't matter how many you have from that point of view.
 
Back
Top Bottom