> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/server-configuration/server-changing-the-command-centre-ser.md). Agents can also search and read this documentation through its [MCP server](https://help.security.gallagher.com/knowledge-hub/~gitbook/mcp).

# Changing the Command Centre server name

Change the Command Centre server name after installation, including the extra steps Command Centre 9.40 and later need.

**Applies to:** Command Centre 9.40 and later (the 9.40 steps) · versions before 9.40 (the earlier steps)

## This page answers

* How do you change the server name, IP, or controller IP configuration after Command Centre is installed?
* Which registry keys and config files hold the server name?
* What is the limit on the server name length?

> 🧑‍🔧 **Installer note:** if you are setting up a new server, it is always highly recommended that you set the final server name and IP address of the server **before** installing Command Centre.

A site may need to change the Command Centre server's name, its IP configuration, or the controllers' IP configuration after Command Centre has been installed and running. To avoid having to visit each controller and DIP-switch-2 reset them to clear their IP configuration, use the method below instead.

***

| Command Centre version | Follow                                                      |
| ---------------------- | ----------------------------------------------------------- |
| 9.40 and later         | Command Centre 9.40 and later, below                        |
| Before 9.40            | Changing the server name (server) and (workstations), below |

***

## Command Centre 9.40 and later

These steps change the host name of a Command Centre server running Command Centre 9.40 or later. The Message Bus and App Host certificates hold `localhost` and the server IP addresses present at installation, not a new host name, so extra steps are needed. For what the services are, see [App Host and Message Bus](https://help.security.gallagher.com/knowledge-hub/products/cc-software/reference/app-host-and-message-bus.md).

{% hint style="warning" %}
The server host name can be changed without replacing certificates. However, if any clients connect remotely via App Host Gateway (such as workstations), **the server must continue to use an IP address that is present in the App Host TLS certificate**.
{% endhint %}

### Before you start

Verify that:

* All Command Centre services are operating normally.
* All affected Gallagher services can connect to the Message Bus. To confirm it, run this command in a command prompt and check that no connections are listed in the `TIME_WAIT` or `SYN_SENT` states:

  ```
  netstat -ano | findstr :8444 | findstr /v /r "TIME_WAIT *0$"
  ```
* You know the IP address that is currently associated with the server.

### Step 1: Change the Windows host name

Change the Windows server host name using the standard Windows procedure. You do not need to restart the server yet: the remaining configuration changes can be completed before rebooting.

{% hint style="warning" %}
Command Centre will not start correctly until steps 2 to 5 have been completed.
{% endhint %}

### Step 2: Update the Command Centre registry settings

Open **Registry Editor** (`regedit.exe`) and go to:

```
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Gallagher\Command Centre
```

**Update existing values.** Modify all registry values that reference the old server name so they reference the new server name. These are likely to include:

```
DatabaseServerMachine
EventDatabaseServer
ServerMachine
ServerUrl
```

**Set `GallagherMessageBusHost`.** Locate the entry `GallagherMessageBusHost` and set its value to:

```
localhost
```

Do **not** set this value to the new server host name. The Message Bus certificate does not contain the new server host name. It contains `localhost` and the server IP addresses present when the Message Bus was installed. The Command Centre Server requires the configured host name to exist in the Message Bus certificate and will fail to connect if the new host name is used.

**Set `AppHostGatewayUrl`.** Locate or create the registry string value `AppHostGatewayUrl` and set it to:

```
https://<SERVER-IP-ADDRESS>:8910
```

For example: `https://192.168.1.2:8910`

* The IP address must be the current IP address assigned to the Command Centre server, and it must be present in the App Host TLS certificate.
* The value must be HTTPS, otherwise connections will not be secure between the workstations and the App Host.

The App Host TLS certificate does not contain the new server host name. It contains `localhost` and the server IP addresses present when the App Host was installed. `localhost` cannot be used, because workstations may be running on a different PC to the server, so they need to refer to the server by IP. Using the server IP address ensures the certificate can be validated successfully.

### Step 3: Update the Message Bus configuration

Before restarting the server, edit the Message Bus configuration file. Typical locations are:

```
C:\Program Files (x86)\Gallagher\Command Centre\Message Bus\MessageBus.conf
```

or

```
C:\Program Files\Gallagher\Message Bus\Command Centre\MessageBus.conf
```

**Delete the entire line** containing:

```
"host": "<OLD-HOSTNAME>",
```

This allows the Message Bus to listen on all network interfaces rather than being bound to the previous host name.

### Step 4: Update sub-product configuration

Update all references to the old host name in the `appsettings` JSON files for every installed Command Centre sub-product. Sub-products, such as `App Host Service` and `Diagnostic Service`, are typically installed under one of these directories:

```
C:\Program Files (x86)\Gallagher\Command Centre\
```

or

```
C:\Program Files\Gallagher\
```

1. Open a **PowerShell** prompt (not a Command Prompt).
2. Go to the Command Centre sub-product installation directory:

   ```
   cd 'C:\Program Files (x86)\Gallagher\Command Centre'
   ```

   or

   ```
   cd 'C:\Program Files\Gallagher'
   ```
3. Run the following to list every JSON file that still references the old host name, replacing `<OLD-HOSTNAME>` with the current PC host name:

   ```
   Get-ChildItem -Recurse *.json |
       Select-String '<OLD-HOSTNAME>' |
       Select-Object -Unique Path
   ```
4. Review and update every instance in every file returned, replacing `<OLD-HOSTNAME>` with `localhost`.
5. Re-run the command above and confirm no files are listed.

### Step 5: Restart the server

Restart the server to apply the changes. After the restart, verify:

* All Command Centre services are running.
* All Gallagher services can connect to the Message Bus. Run the `netstat` command from "Before you start" and check that no connections are listed in the `TIME_WAIT` or `SYN_SENT` states.

Command Centre Client will not work until it has been updated in step 6.

### Step 6: Update the client configuration

Complete this step before starting any Command Centre Client or Configuration Client.

**Command Centre Client (on server and workstations)**

1. Browse to `C:\Program Files (x86)\Gallagher\Command Centre\Client`.
2. Open `CommandCentreClient.exe.config`.
3. Locate:

   ```xml
   <add key="ServerUri" value="opc.tcp://[ServerName]:4840/UA/CommandCentre" />
   ```
4. Replace `[ServerName]` with the new server host name or server IP address, as appropriate for the deployment.

**Configuration Client (on server and workstations)**

1. Browse to `C:\Program Files (x86)\Gallagher\Command Centre\ConfigClient`.
2. Open `CCFT.exe.config`.
3. Locate:

   ```xml
   <add key="ServerUrl" value="wss://[ServerName]:8905" />
   ```
4. Replace `[ServerName]` with the new server host name or server IP address, as appropriate for the deployment.

**ClickOnce deployments.** Where applicable, rebuild and redeploy any ClickOnce applications, including the Visitor Management Kiosk and Command Centre Workstations. Run `ClickOnceBuilder.exe` from the Command Centre `ConfigClientSetup` directory, for example:

```
C:\Program Files (x86)\Gallagher\Command Centre\ConfigClientSetup\ClickOnceBuilder.exe
```

### Check the result

Confirm that:

* The Windows host name has been updated.
* The `GallagherMessageBusHost` registry setting is set to `localhost`.
* The `AppHostGatewayUrl` registry setting is set to `https://<SERVER-IP-ADDRESS>:8910` on the Command Centre server.
* `MessageBus.conf` does not have a `"host"` entry.
* All references to the old host name in sub-product configuration files have been replaced with `localhost`.
* All Gallagher services can connect to the Message Bus (the `netstat` check above).
* Command Centre Clients and Configuration Clients can connect successfully.

***

## Changing the server name (server)

*For Command Centre versions before 9.40. On 9.40 and later, use the section above.*

After the server name has been changed but **prior to rebooting**, update the Command Centre registry settings:

1. Run **Regedit**.
2. Navigate to and click on the relevant key (depends on the installed Command Centre version):

   ```
   HKEY_LOCAL_MACHINE\SOFTWARE\CARDAX\Command Centre FT
   ```

   or

   ```
   HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\CARDAX\Command Centre FT
   ```

   or

   ```
   HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Gallagher\Command Centre
   ```
3. Modify each key that specifically lists the server name. Depending on the version, these may include:

   1. `DatabaseServerMachine`

   2. `EventDatabaseServer`

   3. `ServerMachine`

   4. `ServerUrl`

   > **Note:** keys 1 and 2 will likely just refer to the local SQL instance on the server itself and will not need changing (typically `.\CARDAXFT` or `.\GALLAGHER`).
4. **Reboot the server.**

***

## Changing the server name (workstations)

### Command Centre Client (server and workstations)

1. Browse to `C:\Program Files (x86)\Gallagher\Command Centre\Client`.
2. Open `CommandCentreClient.exe.config` in a text editor.
3. Find this section:

   ```xml
   <appSettings>
       <add key="ServerUri" value="opc.tcp://[ServerName]:4840/UA/CommandCentre"/>
   ```
4. Change `[ServerName]` to the new server's identity (or IP address).

### Configuration Client (server and workstations)

1. Browse to `C:\Program Files (x86)\Gallagher\Command Centre\ConfigClient`.
2. Open `CCFT.exe.config` in a text editor.
3. Find this section:

   ```xml
   </configSections>
   <settings>
       <add key="ServerUrl" value="wss://[ServerName]:8905"/>
   ```
4. Change `[ServerName]` to the new server's identity (or IP address).

Re-run the Click Once Builder and redeploy the Visitor Management Kiosk and workstations.

***

## If running 7.80 or earlier

* Update the registry on all remote Command Centre workstations.
* If running Premier / Command Centre Client and a HOST name was specified for the connection, update the `CommandCentreClient.exe.config` file.
* You may also need to run the ClientSetup `ClickOnceBuilder.exe` to update the server's details.

***

> ⚠️ **The server name cannot exceed 15 characters.** See [Microsoft's naming conventions for computers, domains, sites, and OUs](https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/naming-conventions-for-computer-domain-site-ou) for more information.

***

🔗 **Related**

* [Controller Listen Ports - Command Centre 8.50 and above](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/server-configuration/controller-listen-ports-command-centre.md). Pushing updated server-address info to controllers after a server change.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/server-configuration/server-changing-the-command-centre-ser.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
