I have a simple .net core web api with one action:
[Route(\"[action]\")] public class APIController : Controller { // GET api/values [HttpGet] pu
The best way is to adjust the launchSettings.json, which is located inside the Properties folder.
launchSettings.json
Properties
Change
"applicationUrl": "https://localhost:5001"
to
"applicationUrl": "https://0.0.0.0:5001"
This allows the Kestrel Web Server to listen for traffic from all Network Interfaces.