Identify Process with URL Registered in HTTP.SYS on Windows

http.syswindows

I have a program that is trying to register a URL with HTTP.SYS. It is giving the error "HTTP could not register URL http://+:1234/PathName/. Another application has already registered this URL with HTTP.SYS."

How can I find out what the other application is? Is there a command line I could run that would list all the registered URLs and the process ID that has them registered?

Best Answer

You can use netsh http show servicestate, it will show you a list of Server Session with the URL they registered:

Server session view

Remember the "Request queue name" and scroll toward the end of the command output to find the "Request queue" with the same "Request queue name", and you'll see the PID of the controller process:

Request queues