How to Change IP and Port of GraphHopper Web

I have deployed a GraphHopper instance locally which runs at localhost and port 8989.

I want to change the IP and port in order to be accessible via public IP.
How can I change the IP and port of GraphHopper?

Thank you in advance.

Best Regards,

Please read the documentation and have a look at how to make local ports accessible for external use on your specific operating system.

Thank you very much Robin for your prompt response.
This documentation was very useful and my issue got resolved.

Best Regards,
Yasir