Windows-Server-2022
Changing Ports for Services

Procedure Manual for Changing Ports on Windows Server 2022

Table of Contents

  1. Changing the Port for Certificate Authority Service
  2. Changing the Port for PRTG Network Monitor
  3. Changing the Port for Services in IIS

Changing the Port for Certificate Authority Service

Step 1: Open Registry Editor

  1. Press Win + R to open the Run dialog.
  2. Type regedit and press Enter.

Step 2: Navigate to the CA Registry Key

  1. In the Registry Editor, navigate to the following path:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\<CAName>
    Replace <CAName> with the name of your Certificate Authority.

Step 3: Create or Modify the TCP Port Value

  1. Right-click in the right pane and select New > DWORD (32-bit) Value.
  2. Name the new value TCPPort.
  3. Double-click TCPPort to modify it.
  4. In the Value data field, enter the desired port number and ensure the Base is set to Decimal.
  5. Click OK to save the changes.

Step 4: Restart the Certificate Services

  1. Open Services by pressing Win + R, typing services.msc, and pressing Enter.
  2. Find Active Directory Certificate Services in the list.
  3. Right-click on Active Directory Certificate Services and select Restart.

Changing the Port for PRTG Network Monitor

Step 1: Open PRTG Administration Tool

  1. Open the PRTG Administration Tool on your PRTG server.

Step 2: Modify the Web Server Port

  1. In the Web Server tab, find the Port for Web Server field.
  2. Change the port number to the desired port.
  3. Click Save & Close to apply the changes.

Step 3: Restart the PRTG Core Server Service

  1. Open Services by pressing Win + R, typing services.msc, and pressing Enter.
  2. Find PRTG Core Server Service in the list.
  3. Right-click on PRTG Core Server Service and select Restart.

Changing the Port for Services in IIS

For a Specific Website

Step 1: Open IIS Manager

  1. Press Win + R to open the Run dialog.
  2. Type inetmgr and press Enter.

Step 2: Navigate to the Site

  1. In the left-hand connections pane, expand your server node.
  2. Expand the Sites node.
  3. Click on the website for which you want to change the port.

Step 3: Edit the Site Binding

  1. In the right-hand Actions pane, click Bindings.
  2. In the Site Bindings window, select the binding you want to modify (e.g., HTTP on port 80), and click Edit.
  3. Change the Port field to the desired port number and click OK.
  4. Click Close to exit the Site Bindings window.

Step 4: Restart the Website

  1. In IIS Manager, click on the website.
  2. In the right-hand Actions pane, click Restart.

For the Default Website

Step 1: Open IIS Manager

  1. Press Win + R to open the Run dialog.
  2. Type inetmgr and press Enter.

Step 2: Navigate to the Default Site

  1. In the left-hand connections pane, expand your server node.
  2. Expand the Sites node.
  3. Click on the Default Web Site.

Step 3: Edit the Site Binding

  1. In the right-hand Actions pane, click Bindings.
  2. In the Site Bindings window, select the binding you want to modify (e.g., HTTP on port 80), and click Edit.
  3. Change the Port field to the desired port number and click OK.
  4. Click Close to exit the Site Bindings window.

Step 4: Restart the Default Website

  1. In IIS Manager, click on the Default Web Site.
  2. In the right-hand Actions pane, click Restart.

Additional Notes

  • Make sure the new ports you assign do not conflict with other services on your server.
  • After changing ports, you may need to update firewall rules to allow traffic on the new ports.
  • Always back up your configuration files and registry settings before making changes.

Troubleshooting

If you encounter any issues after changing the ports, verify the following:

  1. DNS Resolution: Ensure the server's hostname resolves correctly.
  2. Firewall Settings: Check that the new ports are allowed through the firewall.
  3. Service Status: Ensure that the services have restarted correctly and are running.

For further assistance, refer to the official documentation or support channels for your specific services.