Results 1 to 3 of 3

Thread: Server with two ports

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Posts
    97

    Server with two ports

    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

  2. #2
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551
    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...

  3. #3
    Member schizo's Avatar
    Join Date
    Sep 2003
    Location
    http://blackskull.cjb.net
    Posts
    42

    Re: Server with two ports

    just create 2 tcp listener objects with different ports

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width