Configuring nginx/ngrest on Ubuntu virtual machine

I have a Ubuntu 18.04 VM running on Windows 7. The VM is configured for Bridged Adapter from Virtual Box. It can go online, has the same IP scheme IP with the local network, and can be pinged from the Windows.

The nginx sample site (info.php) can be accessed in the browser using IP_address/info.php.

I have an ngrest service created with this page, and it runs fine inside the VM's browser using localhost:9098/pets/getPets.

ngrest page inside VM However, that service is inaccessible from Windows. I use IP_address:9098/pets/getPets. Can someone show me how it can be configured? Thanks.