Linux netstat -an | grep 192.168.0.100:3306 | wc -l Windows netstat -na | find /C "192.168.0.100:3306"