I am creating a simple Windows service that hosts a Nancy instance to represent its internal data. Everything works as expected when using a browser on the local computer; I see the opinion that it serves. However, I cannot find the reasons why it will not be accessed from a remote browser (on the same network). Access from a remote browser is simply delayed; IE will eventually display "This page does not display"; Safari on the iPad shows a partial progress bar for a while and does nothing.
I bind using all local IPs, not just localhost. I use the function GetUriParams()at this link to find all the local IP addresses for binding. http://www.codeproject.com/Articles/694907/Embed-a-web-server-in-a-windows-service
_nancyHost = new NancyHost(GetUriParams(port));
_nancyHost.Start();
I found on this page that binding to localhost only works for local access. http://forums.asp.net/t/1881253.aspx?More+SelfHost+Documentation
The IP addresses discovered by this feature are for the Ethernet adapter, the wireless network adapter, and the two VMware network adapters from the previous installation of VMware Player. I tried remote access both by machine name and by literal IP to Ethernet adapter.
urlacl.
netsh http add urlacl, , :
netsh http show urlacl, , .
Nancy
Nancy UrlReservations.CreateAutomatically, , netsh http show urlacl IP-, . RewriteLocalHost true false.
Nancy http://+:3684 http://*:3684 ( Uri()) http://0.0.0.0:3684 ( AddAllPrefixes() HttpListener()).
EXE Windows
, : https://msdn.microsoft.com/en-us/library/ms733768.aspx
Private, Public "Any" TCP UDP.
Nancy . : Windows, , Visual Studio 2013 " ".
, , .
?