How to change the Management Server hostname after MOBOTIX HUB is installed?

If you need to change the MOBOTIX HUB Management Server hostname after the MxHUb VMS installation, follow the steps in this guide.


Important! Create backups before making any changes to the system!

  1. A full backup of the original SQL database should be made.
  2. Before modifying the configuration XML files, you can create their backup copies as well.

Stop all services (run this command in an Administrator command prompt window):

wmic service where "name like 'Mobotix%'" call stopservice

Edit the following XML file (with a plain text editor, as Administrator):
C:\ProgramData\MOBOTIX\HUB Management Server\ServerConfig.xml

In the file, replace HOSTNAME with your new computer hostname:

<AuthorizationServerUri>http://HOSTNAME/IDP</AuthorizationServerUri>;

New Hostname


Edit the following XML file (with a plain text editor, as Administrator):
C:\ProgramData\MOBOTIX\HUB Recording Server\RecorderConfig.xml

In the file, replace all the entries of HOSTNAME with your new computer hostname.

<server>
    <address>HOSTNAME</address>
    <webapiport>9000</webapiport> 
    <authorizationserveraddress>http://HOSTNAME/IDP</authorizationserveraddress>;

        <webapi>
            <usewebapi>True</usewebapi>
            <port>9001</port>
            <publicUri>HOSTNAME:9001</publicUri>

New Hostname


Start the Management Server Service (run this command in an Administrator command prompt window):

net start "MOBOTIX HUB Management Server"

6


Change the ManagementServer Adresse

Right Click on the HUB Management Server Icon

→ Server Configurator…

7

Click on Registering Server: Enter your new Hostname within

Click 2 times Register


After a while the following Message should be displayed


Start MxHUB Management Server again

Right Click on the HUB Management Server Icon

**=>Start Management Server Service

11


Open the Management Client and go to ToolsRegistered Services :

13

Open Network… and replace the server address (LAN) with your computer hostname:
( Note: Never use “Localhost” as a hostname.)

14

Update all the URLs of the services with the new computer name:

15


Start all the services again (run this command in an Administrator command prompt window):

wmic service where "name like 'Milestone%'" call startservice

The Management Server should be working normally now.


Note: If the other services like Recording Server, Eventserver and Mobile Server do not start, right-click on the respective icons and start the service manually.


Then all Services should be running again

12