I am trying to integrate nancy self hosting into my wpf project and when I start my program, I am able to connect to rest api from local browser, but cannot connect from another computer.
HostConfiguration hostConfigs = new HostConfiguration();
hostConfigs.UrlReservations.CreateAutomatically = true;
NancyHost host = new NancyHost(hostConfigs, new Uri("http://localhost:1234"));
host.Start();
Is there a way I can set Uri to wildcard, like in other built in web servers, 0.0.0.0 or + ?
EDIT Windows firewall is disabled!! I've also tried with different configurations of host, with http://10.10.10.149:1234" as a host. I've tryed "http://+:1234, this one doesn't build, it throws error.
I've also completely removed hostConfigs and added ACL to the system by running some commands in powershell, like suggested in many articles:
netsh http add urlacl url="http://+:12345/" user="Everyone"
Still, can only connect from local browser, not from another network location. Whenever I try to connect to machine where program is running via rest api, I get 503 Service Unavailable.