This article will help you change the port used by the Redgate Monitor Web Service (the provided webserver).
NOTE: You will need to update the port in the registry entry as described at the bottom of this page otherwise the web service port will show as in use during subsequent runs of the Redgate Monitor installer.
To update the port in Redgate Monitor v12 and later please follow these steps:
- Stop the Redgate Monitor Web Service service
- Edit the
Webserver.Kestrel.config
file from the website installation directory (%ProgramFiles%\Red Gate\SQL Monitor\Web
by default).
Find the<url>
tag within the<http>
tag and change the port used in the URL:
<http>
<url>http://*:8080</url>
</http> - Restart the Redgate Monitor Web Service service.
For enabling HTTPS and other related functionality on the built-in webservice (a Kestrel webserver) see https://documentation.red-gate.com/sm/installing-and-setting-up/planning-the-sql-monitor-infrastructure-and-installation/configuring-https-for-the-default-sql-monitor-web-server
If the Redgate Monitor is hosted in IIS, you will need to change the port bound to the site in the Bindings menu for that site in the IIS Manager - see https://docs.microsoft.com/en-us/iis/configuration/system.applicationhost/sites/site/bindings/
For v11 and earlier:
- Stop the Redgate Monitor Web Service service
- Edit the
RedGate.SqlMonitor.Service.Web.IisExpress.exe.config
file from the website installation directory (%ProgramFiles%\Red Gate\SQL Monitor\Web\
by default).
Find the portNum setting in the<serverSettings>
tag:
<serverSettings portNum="8080" serviceType="network">
<website path="C:\Program Files\Red Gate\SQL Monitor\Web\Website\"/>
</serverSettings> - Restart the Redgate Monitor Web Service service
Updating the registry entry used by the installer:
- Open regedit.exe
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Red Gate\SQL Monitor 12\Install
- Update the Value HttpServerPort with the new port number
Was this article helpful?
Articles in this section
- Redgate Monitor migration guide to version 14
- "Your browser does not seem to be accepting cookies." error message
- Setting up OpenID Connect (OIDC) with Entra ID in Redgate Monitor
- Proxy Configuration in Redgate Monitor
- WMI error after DCOM hardening patch
- Redgate Monitor alert tuning
- Redgate Monitor set up for optimal performance
- Redgate Monitor Base Monitor Service Account
- Configuring Metrics and Alerts in Redgate Monitor
- Getting started with Redgate Monitor