Answered by : busy-boar
netstat -ano | findstr 8080
Source : | Last Update : Mon, 16 Dec 19
Answered by : witty-worm-m89kw5adzzo2
$ sudo netstat -nlp | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 125004/nginx
Source : https://unix.stackexchange.com/questions/106561/finding-the-pid-of-the-process-using-a-specific-port | Last Update : Sat, 20 Jun 20
Answered by : sahil-rally
sudo ss -lptn 'sport = :80'
Source : | Last Update : Tue, 23 Jun 20
Answered by : elated-emu-g4vrn32fxn6s
# ss -tanp | grep 6379
LISTEN 0 128 127.0.0.1:6379 *:* users:(("redis-server",pid=2531,fd=4))
Source : https://unix.stackexchange.com/questions/106561/finding-the-pid-of-the-process-using-a-specific-port | Last Update : Fri, 13 Aug 21
Answered by : witty-worm-m89kw5adzzo2
$ sudo ss -lptn 'sport = :80'
State Local Address:Port Peer Address:Port
LISTEN 127.0.0.1:80 *:* users:(("nginx",pid=125004,fd=12))
LISTEN ::1:80 :::* users:(("nginx",pid=125004,fd=11))
Source : https://unix.stackexchange.com/questions/106561/finding-the-pid-of-the-process-using-a-specific-port | Last Update : Sat, 20 Jun 20
Answered by : frantic-fish-rpmwn4co21lv
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess
Source : https://stackoverflow.com/questions/48198/how-can-you-find-out-which-process-is-listening-on-a-port-on-windows | Last Update : Thu, 09 Apr 20