question

Cenk-1028 avatar image
0 Votes"
Cenk-1028 asked SamWu-MSFT answered

IIS 10 - Run Asp.Net Core on port 80

Hello,

I wonder if I can run my application on port 80? If so, how.

Thank you.

windows-server-iis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered

@Cenk-1028

You can follow the steps below to set the port number to 80:

  1. Double-click Internet Information Services (IIS) Manager.

  2. Right click your website and select Bindings.

  3. Select the http(https) setting and click Edit, change the port number to 80 and click OK.

244113-5.png


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5.png (6.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sreejukg avatar image
0 Votes"
sreejukg answered

Do you mean to run the application from Visual Studio under port 80, or to host the application in IIS under Port 80? Visual studio uses Kerstel or IIS express to run the application. To change the port the application is using, Open the file lunchSetting.json. You will find it under the properties folder in your project and as shown below.

243850-image.png

If you are planning to host the application under IIS, refer the following article to see to install ASP.Net core hosting bundle in IIS.
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-6.0

In IIS, you can change the bindings to define the port. See the following article.

https://support.gpsgate.com/hc/en-us/articles/360017075999-How-to-change-the-default-IIS-port-for-your-server-website

Hope this helps.


image.png (47.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Cenk-1028 avatar image
0 Votes"
Cenk-1028 answered

yes hosting on IIS port 80.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.