I have a simple .net core web api with one action:
[Route(\"[action]\")]
public class APIController : Controller
{
// GET api/values
[HttpGet]
pu
You can simply do the following to create your WebHost, this will allow remote connections to kestrel.
var host = WebHost.CreateDefaultBuilder(args)
.UseUrls("http://0.0.0.0:80")
.UseStartup()
.Build();
After using the following code I still wasn't able to access my API remotely, I had to disable the network adapters created by Docker in the windows control panel (Control Panel\Network and Internet\Network Connections)