PDA

Click to See Complete Forum and Search --> : Server with two ports


Rahils573
Feb 23rd, 2004, 01:23 PM
Hello Everybody:
I am trying to create an application in which the C# server can listen to two ports (8000 and 8001) with the same host 10.0.6.39 simultaneously

Can any one guide me how to do it???

Pls guide...

Thanks,

Kapil

Redth
Feb 24th, 2004, 02:47 PM
You're going to have to create 2 listening sockets, one on each port...

as for actual programming of sockets, there are a few good tutorials around, but there are only a handful of really good ones... I would suggest you learn how to program with asynchronous sockets...

schizo
Feb 9th, 2005, 07:33 PM
just create 2 tcp listener objects with different ports