Page 1 of 1

Listen on port 9000 failed

PostPosted: October 9th, 2017, 2:00 am
by digioz
Hello,

I just downloaded your Visual Studio 2017 PHP Tools Extension and created a solution from an existing PHP Folder. When I run the solution, I get the following error:

Listen on port 9000 failed

Any idea what may be the issue?

Thanks,
Pete

Re: Listen on port 9000 failed

PostPosted: October 9th, 2017, 2:13 am
by digioz
I found the answer already! I ran the following command to see what process is using port 9000:

Code: Select all
netstat -ano


Based on that I discovered that PID 4 was using that port.

port-9000-error.png


From experience I knew that PID 4 is generally used by the World Wide Web Publishing Service, so I went to Services.msc and stopped that service, setting it to start manually from now on.

port-9000-error-2.png


Once I did that, the debugging started working.

Thanks,
Pete

Re: Listen on port 9000 failed

PostPosted: October 9th, 2017, 11:06 am
by Miloslav Beno
Hi Pete,

Thank you for sharing the solution with us. Interesting, I'm not sure why IIS was listeing on these ports in your case. 9000 is usually not occupied.

Anyway I'm glad you've solved this one ;-)

Have a great day,