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: https://www.microsoft.com/en-us/download/details.aspx?id=17148

portqry.exe -n 192.168.1.1 -e 3301
querying...
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

Cports: https://www.nirsoft.net/utils/cports.html


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: