Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. 2 port tcplistener?

2 port tcplistener?

Scheduled Pinned Locked Moved C#
questionsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dino2094
    wrote on last edited by
    #1

    I need to have a server listening on two ports. The server's reaction is the same on both ports. (It's just the way it is) I got code working on one port with a TCPListener. My question, do I need another TCPListener for the other port, or is there a way I can have the TCPListener listen on two ports? This forum is a life saver.

    C 1 Reply Last reply
    0
    • D dino2094

      I need to have a server listening on two ports. The server's reaction is the same on both ports. (It's just the way it is) I got code working on one port with a TCPListener. My question, do I need another TCPListener for the other port, or is there a way I can have the TCPListener listen on two ports? This forum is a life saver.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      dino2094 wrote:

      My question, do I need another TCPListener for the other port

      Yes.


      Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups