I have successfully deployed an asp.net core mvc to windows iot core on my raspberry pi 3.
I am not sure whether specifying the listening HTTP port via invoking UseUrls
as shown in the following snippet is the correct way.
namespace winiotrasp
{
public class Program
{
// ... others ...
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.UseUrls("http://*:80")
.Build();
}
}
Questions
Is specifying the listening HTTP port via UseUrls
the correct way?
Note that If I don't specify as shown above, the default setting is http://localhost:5000
which makes the web server inaccessible from other devices.