Debugging a port in use for nginx

Category : General | Sub Category : News Posted on 2019-12-04 13:01:48

Debugging a port in use for nginx

Try this on the IP address in use:


portqry.exe -n -e 3301
TCP port 3301 (unknown service): LISTENING (or NOT LISTENING)

To see which process is using which port:
netstat -abn

And to make sure no firewall is active:
netsh firewall show state


Try killing all nginx instances and (re)starting nginx:
taskkill /f /t /fi "username eq nginxuser" /im nginx*

(before starting nginx after issuing a kill, check to see if some other process owns port XYZ, for example we have seen IIS and nginx using the same port where IIS got access first but nginx was listed as the user but not accepting requests)

Leave a Comment: