Localhost:8000 not working

I am using ubuntu desktop OS on Oracle VM to install frappe and erpnext. I used the easy install method and installed after resolving a few issues with getting wkhtmltopdf.
After installing, I can’t access erpnext using localhost:8000 from my windows computer, only on the ubuntu VM, i was wondering why that is. Also, when using ubuntu server on a VM, i can’t access it at all but when i download the preloaded VM version of erpnext, i can access it via localhost:8000. Can someone help me better understand what is going on.
I am new to this, can someone explain to me why and how that all works?

Add a second host only network interface on you VM and configure it in
/etc/network/interfaces You will get a private ip you can use as

For Windows 10 and 8

Press the Windows key.
Type Notepad in the search field.
In the search results, right-click Notepad and select Run as administrator.
From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts

append this to that file sitename(the site you created while installing)
refer this for site creation: https://github.com/frappe/bench

Click File > Save to save your changes.

now do this in your browser
(your ip address):8000

1 Like

Thank you all for your response.
I just got it to work by port forwarding using the VM.