Access localhost through Ubuntu server VM public IP address

I have installed ubuntu server VM in the Azure portal. It is working fine. In the VM I have installed Docker container, In Docker container, I have installed Open edX using It is also working fine. But Open edX working on localhost:18000 under ubuntu VM. I want to access Open edX in ubuntu VM public IP address something like my_ubuntu_public_ip:18000. How to achieve this.