I can help with the "number of current connections" problem...if anyone can help with the second part, I'd appreciate it too

Anyway, here's what you do: Have a global variable called currentConnections or whatever you want. In the code where your server accepts connections, increment that variable by one. Now, you should subtract it by one in *two* places: where the user terminates the connection with a command (i.e., user says "quit" or whatever they use to disconnect) and in the [socket]_Close event. The second one is if the client disconnects without issuing a "quit" command.

Hope this helps!