OWIN service cannot be accessed over the network

I tried the following one sentence;

   static void Main()
    {
        string url = "http://localhost:8080/";
        StartOptions options = new StartOptions(); 
        options.Urls.Add("http://localhost:8080"); 
        options.Urls.Add("http://127.0.0.1:8080"); 
        options.Urls.Add(string.Format("http://{0}:8080", Environment.MachineName)); 

        using (WebApp.Start<Startup>(options))
        {
          HttpClient client = new HttpClient();
          var response = client.GetAsync(url + "api/Values").Result;
          Console.WriteLine(response);
          Console.WriteLine(response.Content.ReadAsStringAsync().Result);
          Console.ReadLine();
        }
    }

It can connect to a local browser, but remote computers receive a "web page not available." Set backup using 'add urlacl url = http: // *: 8080 / user = EVERYONE' Port 8080 is open, I tried many other ports with the same results.

tried to suggest below the same result;

var options = new StartOptions("http://*:8080")
  {
     ServerFactory = "Microsoft.Owin.Host.HttpListener"
  };

Nothing works remotely, only locally - is there anything else I can try?

+4
source share

All Articles