Force close an open port in Windows Server 2003

portwindows-server-2003

On a server running Windows Server 2003 I killed the TS-service (specifically the svchost.exe which belongs to terminal services).

The service is not running anymore but the server is still listening on port 3306 (as is seen by running netstat -a).

How can I force this port closed?

Best Answer

This rule has enough information to make a port rule on the WS2K8 system. Within netsh, this rule would be entered as:

netsh advfirewall firewall add rule name="3306" protocol=TCP dir=in localport=3306 action=block