httpsys icon indicating copy to clipboard operation
httpsys copied to clipboard

What are the exact prerequisites for httpsys

Open Daviddevits opened this issue 12 years ago • 1 comments

Is it possible that httpsys does not work anymore on newer versions of node.js (tried on v0.10.15 and 0.10.20 x64 and x32) and i always get Error: Error initializing the HTTP.SYS server. System error 5. When trying some basic example code. It seems to not be able to bind to the dll.

Daviddevits avatar Oct 12 '13 15:10 Daviddevits

The "system error 5" means ACCESS_DENIED. This is a common error when starting to listen on a URL with http.sys API. The URL reservation has to be explicitly allowed.

Jump into elevated (Administrator) Command Prompt, and run:

netsh http add urlacl url=http://*:3102/ user=%USERNAME%
netsh http add urlacl url=https://*:3103/ user=%USERNAME%

This will allow listening on port 3102 for http, and 3103 for https - which is what the unit tests use. Replace with your own numbers if ports used are different.

gimelfarb avatar Dec 31 '13 15:12 gimelfarb