IBM APM 8.1 - Hybrid gateway configuration on non default ports (80, 443)
ericmtn 1000009W88 Visits (5087)
Question : How to configure custom ports (e.g. 81 and 444 ) in Hybrid Gateway settings to communicate with APM 8.1 server?
For example, the communication default ports 80 and 443 need to be changed into different port values like 81 and 444, because on the same machine where hybrid gateway is installed, there is also the service httpd up and running and using already port 80 and 443. Currently the Hybrid Gateway is not able to connect to APM server. I tried and made some changes in files:
but it still doesn't work, and in the logs, I see the message:
CWWKO0221E: TCP Channel defaultHttpEndpoint initialization did not succeed. The socket bind did not succeed for host <IP@> and port 81. The port might already be in use.
Remark: I made similar changes using a Linux APM Agent and the connection between Agent and APM server has been established successfully.
Answer: this is not possible to reconfigure the APM 8.1 hybrid gateway to use dfferent ports than default 80 and 443.
The hybrid gateway (HG) does not support connecting to the APM server using ports other than 80 or 443.
The HG code does use the IRA_ASF_SERVER_URL setting in the boot
The HG download code is purposely hard-coded to use port 80 or 443 for the config file download. So until the HG can download its config file from the APM server, it cannot connect to the TEPS to get ITM v6 agent data to send to the APM server. (The config file is not stored on disk but in memory so the HG needs to be able to download it.)
Also the Hybrid Gateway httpPort and httpsPort settings in the <hg-
Since you have got a HTTP server running on your Hybrid gateway system and listening on port 80, then you could copy the <apm server home dire
Or the other option is to install the hybrid gateway on another Linux system where there is no conflict and where port 80 and 443 are not already used.
APM v8.1.4 hybrid gateway documentation links, for reference:
Subscribe and follow us for all the latest information directly on your social feeds: