1

Is there any way of starting a HTTP WCF service from a regular, non-admin application manually? All I want is my regular desktop application to listen on a port where some things can be controlled remotely.

I could go the manual route and use my own TcpListener, parse HTTP (or any other protocol), go through some reflection, then respond back on TCP, but I'd like to use WCF to avoid boilerplate.

lcsondes
  • 484
  • 4
  • 16
  • What leads you to believe that running a WCF service requires admin rights? – Tom W Mar 05 '18 at 12:57
  • The exception that I'm getting (HTTP could not register URL http://+:39483/hello/. Your process does not have access rights to this namespace) as well as [many other](https://stackoverflow.com/questions/8727293/http-could-not-register-url-http-8000-hellowcf-your-process-does-not-have) questions that are somewhat related to mine. In my situation it's not feasible to be admin or use netsh. I can listen on ports and would like to proceed from there. – lcsondes Mar 05 '18 at 13:06

1 Answers1

1

A partial workaround is to use http://localhost:80/Temporary_Listen_Addresses/ if that's acceptable in your situation (not in mine though). This URL magically doesn't require additional permissions. source

lcsondes
  • 484
  • 4
  • 16