By default, website binding on IIS is port 80. In some cases, you want your sites to listen on some other port. In this example, we'll create a site that binds on port 2332.
To begin, copy your site's folder to the "wwwroot" folder (In this example, the name of the site's folder is Port2332Site).
Close "wwwroot" window, open the "Start" menu, and run the "Internet Information Services (IIS) Manager."
On the "Internet Information Services (IIS) Manager" screen, in the "Connections" pane, expand your server. (In this example, the server is WEBSERVER)
Highlight "Sites" and click "Add Web Site..." in the "Actions" pane, to run the "Add Web Site" wizard.
On the "Add Web Site" wizard screen, in the "Site name:" field, type the name of your site (in this example, it is Port 2332 Site).
In the "Connection Directory" section, click the browse button beside the "Physical path:" field and browse to and choose the folder of your site and click "OK" to return to the Add Website screen.
Then, beneath "Binding," Type "your port number" in the "Port:" field (we typed 2332) and click "OK."
Go to your "Start" menu and open "Internet Explorer."
In the IE address bar, enter http, colon, forward slash, forward slash, name of your server, colon, and your port number, then press Enter. Your site will open, however it will not be accessible from the Internet because of Windows Firewall.
Return to your "Start" menu and open "Windows Firewall with Advanced Security"
On the "Windows Firewall with Advanced Security" screen, highlight "Inbound Rules." In the "Actions" pane, on the right, click "New Rule..." to run the "New Inbound Rule" wizard.
In the first screen of the wizard, choose "Port" as the type of rule to create, then click "Next."
On the "Protocol and Ports" screen, ensure that "TCP" and "Specific local ports:" are selected. In the "Specific local ports:" field, type your port number (in this example it is 2332), and then click "Next."
On the "Actions" screen, ensure that "Allow the connection" is selected, then click "Next."
On the next screen, leave the "Profile" defaults as they are (all profiles are selected), then click "Next."
On the "Name" screen, name your new inbound rule. In this example, it is "2332 Port Site")
You can enter a description in the "Description (optional)" if you choose to, and then click "Finish."
You will then see your newly created inbound rule in the "Inbound Rules" pane.
Close the "Windows Firewall with Advanced Security" screen. Your site is now accessible from the Internet through your new port.