I have a batch script set to launch different servers, all listening on different ports but the same ip. In order to not lock up the computer running the servers, I want the servers to launch 1 at a time.
My solution to this is using telnet and checking to see if the port is open, then proceed to launching the next server.
I know that telnet uses a specific length of time to test the connection, am I able to set it to be indefinite so that it doesn't timeout, or at least several minutes, and on fail it could throw an error to be investigated?
I want my batch file to look something like:
:startserver1
Start server 1 on port 101
telnet ip 101
if connection is successful, goto :startserver2
etc.