static void Main(string[] args) { HostConfiguration hostConfig = HostConfiguration.GetConfig(); string baseAddress = hostConfig.HostEndpoint.BaseAddress; // Start OWIN host using (WebApp.Start <Startup>(url: baseAddress)) { Console.WriteLine("Started listening on port {0}.{1}Press Enter to quit.", baseAddress, Environment.NewLine); Console.ReadLine(); } }