Home › ASP.NET / .NET Core › How to Change the Port in an ASP.NET Core Web API
ASP.NET / .NET Core · Mar 22, 2019

How to Change the Port in an ASP.NET Core Web API

To change the port in an ASP.NET Web API, under Properties go to the launchSettings.json file. In this case, let’s change the IIS default SSL port. Here it is 44354:

If we run this before changing it by pressing F5, we see the page opens to port 44354:

Let’s change it to port 44336:

On rerunning our Web API, we see our port has been updated:

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Carl de Souza
KEEP LEARNING. KEEP BUILDING.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.