I have a client/application that is making a direct persistent TCP/IP connection between itself and a socket handler runing on address 1:port 1111. What I want is, if this conenction fails, when the client tries to reconnect, if the port is unavailable then the server to failover to a secondary port. Other connections on address 1 ports 1112-9999 should be unaffected. Is this possible? Do I have to configure keepalives for this to work or will it automatically detect the lost of the connection?
Any help you can give me would be appreciated!! Thanks in advance.