小编cos*_*oan的帖子

如何配置owin/Katana来监听所有主机IP地址

如何配置可从其他主机访问的owin Web服务器.所有示例都配置为localhost.我可能不知道URL是什么.(IP地址/主机名)

码:

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();
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

c# owin katana

9
推荐指数
1
解决办法
2642
查看次数

标签 统计

c# ×1

katana ×1

owin ×1