> How can one determine if TCP port is already in use, before I > startup the SocketServer.
I see only two solutions: 1 - open the socket and check for an error. 2 - use the IP Helper GetTCPTable API to list all open TCP sockets and emunerate the list to see if your IP and port is in it. On a busy server there may be hundreds of open connections. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be