server ports equal on the engine

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf server ports equal on the engine

  • Creator
    Topic
  • #55324
    Bob Schmid
    Participant

      scenario:

      2 server defined tcp/ip ports on same engine = 26094

      2 clients BOTH sending to those ports with same ip

      conn_4_client define to connect to conn_2: localhost and port 26094

      and

      conn_3_client defined to connect to server thread conn_1: localhost and port 26094

      How can both server threads (port 26094) be connected to?  by different clients. I do have auto-reconnect chosen on the server side.

      I do not have enable ephermeral port range selected  

      We had a production issue the other day where two server threads using same port…and two external clients referencing the same ports…and the wrong client / server apps were paired up 🙁

    Viewing 0 reply threads
    • Author
      Replies
      • #84964
        David Barr
        Participant

          I assume that you know it’s a bad idea to set up two threads this way and just want an explanation of how it is possible.

          Once a server thread accepts a connection, it stops listening for new connections. You could start another thread listening on the same port. As long as you start all the threads in the right order it would be possible to connect two different interfaces on the same port.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.