ERPNext with Zerotier

I am developing a new module in ERPNext locally, on a virtual machine running Ubuntu 24.04, but I have configured it to run without a graphical interface, using only the command line. I have installed Zerotier to allow remote development using ‘code-server’.
What I would like to know is whether it is possible to use Zerotier to access the ERPNext website (localhost:8000) remotely, because so far I haven’t been able to, and I have tried everything. If anyone knows of another way, I would greatly appreciate it.

You won’t use localhost, use the IP address of the virtual machine. If you enabled DNS multi-site, Nginx should allow you to access via http://ipaddressOfVM

Now I was able to solve it. Actually, the problem was that I hadn’t set a default site, so whenever I tried to access it, I kept getting a 404 error. But after configuring it, I was able to access it. Thank you very much!