I am trying to run my own WinHTTP-based web server on a computer running Windows Server 2008.
I am passing "http: // *: 22222 /" to HttpAddUrl
When I run my executable as Administrator or LocalSystem, everything works fine. However, if I try to run it as NetworkService in order to minimize security risks (since there are no legitimate reasons for the application to use administrator rights), the function does not work with the "Access is denied" error code.
I did not know that the NetworkService has any restrictions on which ports and interfaces it can listen to.
Is there a way to configure permissions so that I can run the application under the NetworkService account and connect to it from other Internet hosts?
source share