This project has moved. For the latest updates, please go here.

ObservableHttpLIstener binding on IPAddress.Any

Aug 19, 2012 at 1:49 AM

Should this be possible?

I keep getting a very esoteric "the request is not supported" error.

Same code using Start with loopback ip works fine 

Coordinator
Aug 22, 2012 at 1:26 PM

Hi, 

IPAddress.Any isn't supported by ObservableHttpListener, though it should be.  I'll add a work item for this bug.

You can workaround it now by creating an instance of HttpListener yourself using a host wildcard, then call the StartObservable extension method directly.  See the HttpListener remarks for details about host wildcards.

For example:

var listener = new HttpListener();

listener.Prefixes.Add("http://+:80/");

var requests = listener.StartObservable();

- Dave

Coordinator
Aug 22, 2012 at 1:30 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.