How do I change WebUI port 8080?

Started by ricktendo, August 15, 2016, 11:08:15 PM

Previous topic - Next topic

ricktendo

I would like to install NetXMS on the same machine as my UniFi Controller, but port 8080 is already being used, how can I change the NetXMS WebUI to use 8081 or another port?

tomaskir

NetXMS web UI is a Java application running in Tomcat.
You need to edit the Tomcat configuration file.

This is in 'server.xml' config file; look for 'port="8080"'.
Where this file is located depends on your OS.

ricktendo

#2
Thank you tomaskir, found it... I notice it redirects to port 8443 this is also used by UniFi controller, is it OK for me to change this in server.xml as well and is this the code to do it?

    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />

tomaskir

Actually, things inside <!--whatever--> in xml are comments.
So that connector is not used - meaning 8443 is not used at all.

Above it, you should see connector using 8080 which is not commented, change that port.