How to Change Access Point HTTPS Port from 8443 to 443?
By default, the Access Point uses port 8443 for incoming HTTPS connections. More information about the Access Point default ports is available here. Sometimes, it may be required to change the HTTPS port from 8443 to 443 (or to something else).
Step-by-step guide
The Access Point default HTTPS ports can be changed by following the steps below.
Open "/etc/harmony-ap/tomcat-conf/server.xml" for editing.
Update the "Connector" element's "port" property from "8443" to "443" (or to something else).
<Connector SSLEnabled="true" protocol="org.apache.coyote.http11.Http11NioProtocol" port="443"By default, port numbers below 1024 are so called privileged ports that are not allowed to be used by non-root users, such as "harmony-ap". Therefore, the "harmony-ap" Java process must be allowed to listen on a privileged port.
sudo setcap cap_net_bind_service+ep /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaRestart the "harmony-ap" service.
sudo systemctl restart harmony-apThe Access Point should now listen on port 443.
Also, remember to update the new port in the PMode configuration file and communicate about the change to all data exchange partners.