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.
Micro Integrator ports¶
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
Changing default MI 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
EI Analytics ports¶
By default, EI Analytics is internally configured with a port offset of 1. Listed below are the ports that are effective in EI Analytics by default (due to the internal port offset of 1).
||The port of the EI Analytics Portal.|
||The HTTP port of the management API of EI Analytics.|
||The HTTPS port of the management API of EI Analytics.|
||Thrift SSL port (for the secure transport) on which the client is authenticated when accessing EI Analytics.|
||Thrift TCP port on which EI Analytics receives events from clients|
Changing default EI Analytics ports¶
If required, you can manually change the HTTP/HTTPS ports in the
deployment.yaml file (stored in
EI_ANALYTICS_HOME/conf/server folder) as shown below.
With the default internal port offset, the effective port will be
https_port + 1.
wso2.transport.http: listenerConfigurations: - id: "msf4j-https" host: "0.0.0.0" port: https_port scheme: https
wso2.transport.http: listenerConfigurations: - id: "default" host: "0.0.0.0" port: http_port
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