How to find which application on your computer or server using which port


For Linux users use the following command
fuser -n tcp 80
or use
sudo lsof -i :22
or use
lsof|grep 862 ypbind 1529 root 5u IPv4 4681 TCP *:862
For Windows Users use the following command
netstat -a -b -o -n