xxxxxxxxxx
# Find the processes running on a specific port (e.g., port 8080)
sudo lsof -i :8080
# Kill all processes running on the port (replace <PID> with the actual process IDs)
sudo kill -9 <PID>
xxxxxxxxxx
# list the TCP process bound to port PORT
fuser PORT/tcp
# Example: list the TCP process bound to port 8080
fuser 8080/tcp
# list the UDP process bound to port PORT
fuser PORT/udp
# Example: list the UDP process bound to port 8080
fuser 8080/udp