How to configure an owin web server to be accessible from other hosts. All the examples are configured for localhost. I might not know what is the URL. (ip address/host name)
Code:
class Program
{
static string url = "http://localhost:9080";
static void Main(string[] args)
{
using (WebApp.Start<Startup>(url))
{
Console.WriteLine("Server running on {0}", url);
Console.ReadLine();
}
}
}
You can change your url to listen on all adapters by using the '*':
static string url = "http://*:9080";
This will be less restrictive than localhost.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With