Procedure Manual for Changing Ports on Windows Server 2022
Table of Contents
- Changing the Port for Certificate Authority Service
- Changing the Port for PRTG Network Monitor
- Changing the Port for Services in IIS
Changing the Port for Certificate Authority Service
Step 1: Open Registry Editor
- Press
Win + R
to open the Run dialog. - Type
regedit
and pressEnter
.
Step 2: Navigate to the CA Registry Key
- In the Registry Editor, navigate to the following path:
Replace
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\<CAName>
<CAName>
with the name of your Certificate Authority.
Step 3: Create or Modify the TCP Port Value
- Right-click in the right pane and select New > DWORD (32-bit) Value.
- Name the new value
TCPPort
. - Double-click
TCPPort
to modify it. - In the Value data field, enter the desired port number and ensure the Base is set to Decimal.
- Click OK to save the changes.
Step 4: Restart the Certificate Services
- Open Services by pressing
Win + R
, typingservices.msc
, and pressingEnter
. - Find Active Directory Certificate Services in the list.
- Right-click on Active Directory Certificate Services and select Restart.
Changing the Port for PRTG Network Monitor
Step 1: Open PRTG Administration Tool
- Open the PRTG Administration Tool on your PRTG server.
Step 2: Modify the Web Server Port
- In the Web Server tab, find the Port for Web Server field.
- Change the port number to the desired port.
- Click Save & Close to apply the changes.
Step 3: Restart the PRTG Core Server Service
- Open Services by pressing
Win + R
, typingservices.msc
, and pressingEnter
. - Find PRTG Core Server Service in the list.
- 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
- Press
Win + R
to open the Run dialog. - Type
inetmgr
and pressEnter
.
Step 2: Navigate to the Site
- In the left-hand connections pane, expand your server node.
- Expand the Sites node.
- Click on the website for which you want to change the port.
Step 3: Edit the Site Binding
- In the right-hand Actions pane, click Bindings.
- In the Site Bindings window, select the binding you want to modify (e.g., HTTP on port 80), and click Edit.
- Change the Port field to the desired port number and click OK.
- Click Close to exit the Site Bindings window.
Step 4: Restart the Website
- In IIS Manager, click on the website.
- In the right-hand Actions pane, click Restart.
For the Default Website
Step 1: Open IIS Manager
- Press
Win + R
to open the Run dialog. - Type
inetmgr
and pressEnter
.
Step 2: Navigate to the Default Site
- In the left-hand connections pane, expand your server node.
- Expand the Sites node.
- Click on the Default Web Site.
Step 3: Edit the Site Binding
- In the right-hand Actions pane, click Bindings.
- In the Site Bindings window, select the binding you want to modify (e.g., HTTP on port 80), and click Edit.
- Change the Port field to the desired port number and click OK.
- Click Close to exit the Site Bindings window.
Step 4: Restart the Default Website
- In IIS Manager, click on the Default Web Site.
- 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:
- DNS Resolution: Ensure the server's hostname resolves correctly.
- Firewall Settings: Check that the new ports are allowed through the firewall.
- 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.