在了解Web Deploy时,我遇到了一些关于http:// +:80和http://*:80的netsh.exe命令.那是什么意思?
如何在所有网络接口上进行Web API自主绑定?
我目前有以下代码.不幸的是,它仅绑定在localhost上.因此,从localhost以外的地方访问此服务器失败.
var baseAddress = string.Format("http://localhost:9000/");
using (WebApp.Start<Startup> (baseAddress))
{
Console.WriteLine("Server started");
Thread.Sleep(1000000);
}
Run Code Online (Sandbox Code Playgroud)