You need to make changes in following files to run On-Premise Identity Server on another port other than default port 8080 –
1. You need to change the startup,shutdown port located in mo-idp-server/conf/server.xml file.
2. You also need to change the port in application.properties file located in mo-idp-server/moas/WEB-INF/classes/ location.
Commands to check what ports are free to use-
Commands to open a port on the server to access the IdP from outside
Add Firewall rule to allow the port to accept packets:
# firewall-cmd --zone=public --add-port=55555/tcp --permanent
# firewall-cmd --reload
# iptables-save | grep 55555