signalr - Self hosted OWIN and urlacl -
i've created self hosted nancy/signalr application self-hosted in owin using microsoft.owin.host.httplistener , microsoft.owin.hosting
things work fine locally try use localhost access app http error 503. service unavailable error. can't access app using 127.0.0.1 or machine name.
i've tried adding port urlacl using
http add urlacl http://*:8989/ user=everyone doesn't seem anything.
here owin start options i've tried,
var options = new startoptions { url = "127.0.0.1", app = gettype().assemblyqualifiedname, port = _configfileprovider.port }; var options = new startoptions { app = gettype().assemblyqualifiedname, port = _configfileprovider.port }; here source code file starts , stops server https://github.com/nzbdrone/nzbdrone/blob/vnext/nzbdrone/owin/owinhostcontroller.cs
so turns out need pass in url startoptions in same format urlacl.
changing start options code below fixed problem. app accessible across network.
var options = new startoptions("http://*:8989") { serverfactory = "microsoft.owin.host.httplistener" };
Comments
Post a Comment