By default, when a SharePoint web application is created, a binding is created in the IIS and it is assigned a port number which was specified during the web application creation. There can be instances where we have created the web application in SharePoint at a particular port number but had to change the port number at a later point. Say, we have created it on the default port 80 and changed it to a different port number say: 2016. We will see how to achieve that through this blog.
As shown, the URL indicates a web application that is created on port 80.
How to Identify the Port number of a SharePoint Web Application
- Login to the SharePoint Server. Choose Start -> All Programs, and then select SharePoint 2016 Central Administration.
- Select Manage Web Applications from Central Administration which will display a list of all the SharePoint web applications.
- The page will list the Web Application and the corresponding Port number.
Change the Web Application Port
In order to change the port binding, we will have to do two main steps.
- Edit the binding in the IIS Server.
- Edit the Alternate Access mapping from Central Administration.
First, let us change the binding in IIS. Select the web application whose binding has to be changed.
Click on Bindings option.
Click on Edit button.
Specify the new port number say: 2016.
The updated binding information will look like below.
Now, head over to the Central Administration page and click on ‘Configure alternate access mappings’.
Click on Edit Public URLs.
Change the web application to the desired one. The ‘Default’ URL will be the one used by the old port number.
Change the URL to the new port number.
The new alternate access mapping will look like below.
Now, let’s see if the new URL listening at the port number 2016 works by browsing to it.
The site is up and running and is bound to new port 2016.
Summary
Thus, we saw how to move a SharePoint 2016 web application binding at one port number to another.