java address already in use code example
Example 1: address already in use
# To see ports in use
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
Example 2: address already in use :::8081 windows
netstat -a -n -o
//then find the pid which is running in this port and run
taskkill /F /PID [pidnumber]