close port code example
Example 1: how to shutdown port in windows
netstat -ano | findstr < Port Number >
taskkill /F /PID < Process Id >
Example 2: debian kill open port
fuser -k 3000/tcp //will kill that process.
Example 3: how to close port in linux
sudo ufw deny PORT
Example 4: how to close port in linux
sudo ufw allow PORT