how to stop server running on port 8080 windows code example
Example 1: windows stop process running on port 8080
netstat -ano | findstr <Port Number>
taskkill /F /PID <Process Id>
Example 2: firewall-cmd add port 8080
sudo firewall-cmd --zone=public --permanent --add-port=5000/tcp
sudo firewall-cmd --zone=public --permanent --add-port=4990-4999/udp
sudo firewall-cmd --zone=public --permanent --list-ports
Example 3: how to stop port 8080
taskkill /F /PID <Process Id>