How to listen on * (localhost and ip) without administrator privileges?

Jul 30, 2014 at 5:55 AM
I can't understand why administrator privileges are required to listen on non-localhost with
not-80 or over 1024 tcp port number. So I can't make a simple web server program which accepts a request from another host.

Anyway, from https://casablanca.codeplex.com/discussions/532385

there may be a way with netsh, HttpCfg.exe or HttpSetServiceConfiguration.

Can I get the detailed howto about using the above ways?
Jul 30, 2014 at 11:05 AM
I'm the OP of the discussion that you referenced. The need for Administrator mode is an unwelcome surprise. Administrator mode is probably required for security reasons.
  1. The referenced discussion contains instructions on how to use netsh for a one-time Administrator mode setup.
  2. HttpCfg.exe seems to be deprecated after XP.
  3. HttpSetServiceConfiguration is an API callable from C++ or pinvoke from .Net. It is part of the HTTP Server API. Below are links to info:
HTTP Server API Version 1.0 Reference
HttpSetServiceConfiguration
httpsetserviceconfiguration (httpapi)
How to work with SSL certificate configuration records via HTTP Server API
SSL Related Question
helpful info from winehq.org