Updated on Kisan Patel
Problem:
How to remotely connect to .net core self hosted web api?
External Network Access to Kestrel and IIS Express in ASP.NET Core.
Remote Access to Local ASP.NET Core Applications From IP Address?
Solution:
The best way is to adjust the launchSettings.json
, which is located inside the Properties folder.
Change
"applicationUrl": "https://0.0.0.0:5001;http://0.0.0.0:5000"
to
"applicationUrl": "https://0.0.0.0:5001;http://0.0.0.0:5000"
This allows the Kestrel Web Server to listen for traffic from all Network Interfaces.