Results 1 to 2 of 2

Thread: TCP listener on several ports

  1. #1
    .NET Framework
    .NET 4.5
    Join Date
    Oct 2018
    Posts
    2
    Rep Power
    0

    TCP listener on several ports

    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

  2. #2
    .NET Framework
    .NET 4.5
    Join Date
    Apr 2011
    Posts
    1,954
    Rep Power
    151
    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.

Similar Threads

  1. Microsoft access database listener
    By Abdoul Rahim in forum MS Access
    Replies: 3
    Last Post: 03-03-2018, 7:50 AM
  2. Ethernet Servo Motor - XML, TCP
    By chris_hdrive in forum Third Party Products
    Replies: 1
    Last Post: 12-10-2016, 11:09 AM
  3. TCP Listener Get HANG
    By rudalboy09 in forum Net / Sockets
    Replies: 1
    Last Post: 06-19-2015, 1:00 AM
  4. Replies: 2
    Last Post: 09-27-2013, 2:42 PM

Bookmarks

Posting Permissions

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