Changing the Default Ports¶
When you run multiple WSO2 Micro Integrator instances or a cluster of instances on a single server or virtual machine (VM), you must change the default ports to avoid port conflicts.
By default, the Micro Integrator is internally configured with a port offset of 10. Listed below are the ports that are effective in the Micro Integrator by default (due to the internal port offset of 10).
||The port of the HTTP Passthrough transport.|
||The port of the HTTPS Passthrough transport.|
The HTTP port of the Management API of WSO2 Micro Integrator.
Configuring the default HTTP port
If required, you can manually change the HTTP port in the
The HTTPS port of the Management API of WSO2 Micro Integrator.
Configuring the default HTTPS port
If required, you can manually change the HTTPS port in the
Certain ports are randomly opened during server startup. This is due to specific properties and configurations that become effective when the product is started. Note that the IDs of these random ports will change every time the server is started.
- A random TCP port will open during server startup because of the
-Dcom.sun.management.jmxremoteproperty set in the server startup script. This property is used for the JMX monitoring facility in JVM.
- A random UDP port is opened at server startup due to the log4j
SyslogAppender), which is configured in the
Changing default ports¶
There are two ways to manually offset the default ports.
- The internal offset of 10 is overriden by this manual offset. That is, if the manual offset is 3, the default ports will change as follows:
8283(8290 - 10 + 3)
8246(8253 - 10 + 3)
9157(9164 - 10 + 3)
- Note that if you manually set an offset of 10 using the following method, you will get the same default ports.
Pass the port offset to the server during startup.
deployment.tomlfile (stored in the
MI_HOME/conffolder) and add the port offset as follows:
[server] offset = 3