First of all be carefull when sharing sensitive information as IP or related. This is a public group so anyone can access this data.
Changing the port number is simply changing the value to the one you need, is a plain text so there's no complication, open the file, edit the line where says port and save it.
After that, as I mentioned earlier, you will have to restart manager service.
But If you're not 100% sure of the consequence of the changes you're about to do, please take a look a this documentation:
* Remote Port on ossec.conf:
-
agent enrollment* Kibana port
-
Kibana installationAre you sure that the best approach isn't to add the needed port to the firewall allow rules?
In some OSes (e.g. centos7) some ports are added to the firewall in prder to allow correct communication.