Question:

How can I find who is connected to my web server from the command line

Answer:

Here are the commands for http (port 80) for windows or linux

Windows:

netstat -an | find “80″

Linux:

netstat -wanutp | grep “.http”
or
netstat -an |grep :80 |wc -l