How to Access and Debug an ASP.NET Core Application Running in Kestrel from Another Computer on the Local Network
If you are developing using .NET Core or later versions and you want to access the application you are developing running on
https://localhost:5001 from another computer on the Local Area Network (LAN), you can follow the instructions below:
launchSettings.jsonfile, which can be found under the
Propertiesfolder in your project structure.
applicationUrlsetting to listen for traffic from all IP addresses/Network interfaces. Modify it as follows:
Open port 5001 in the Firewall:
Start the application:
Access the application from another computer on the same network:
22.214.171.124, you would enter
By following these steps, you can access and debug your ASP.NET Core application from another computer on the local network, allowing for easier testing and debugging scenarios.