How to do it...

Here are the steps needed to change your website listener port:

  1. Open Internet Information Services (IIS) Manager from inside the Tools menu of Server Manager.
  1. In the left-hand window pane, expand the name of your web server and click on the Sites folder.
  2. Right-click on your website and choose Bindings....:
  3. Choose the http binding that currently displays port 80 and click on the Edit... button.
  4. Change the Port field to 81. This is just for our example, of course. You could enter any valid port number in this field that isn't otherwise in use on this server.
  5. Click OK, then Close.
  6. The port is immediately changed on your website. ...

Get Windows Server 2016 Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.