cmd how to free a port code example
Example 1: kill service by port number on windows
taskkill /F /PID PORT_NUMBER
Example 2: how to shutdown port in windows
netstat -ano | findstr < Port Number >
taskkill /F /PID < Process Id >
taskkill /F /PID PORT_NUMBER
netstat -ano | findstr < Port Number >
taskkill /F /PID < Process Id >