set your PC to static ip or add DHCP reservation for MAC Address so PC is always on same IP
Setup Virtual Server to forward port in router:
Notice 192.168.0.1 is the PC which has web server / ERPNext installed. It needs to be on same IP irrespective of router restart. Virtual Server / Port forwarding is set for same ip, If ip changes port forwarding breaks.
HTTPS and HTTP ports are forwarded in above example for a web server.
The login, DHCP Reservation or Static IP, and Port forwarding interface is different for different routers.
If you need help with the router, the first thing to do will be to post the model - if someone has the same model, they may be able to help better. In addition, the router manual usually will tell how to do what is being told above. You may also get more detailed help on the specific router manufacturer forum (without the same router, its hard to give detailed instructions since they’re usually all different).
If you are able to do the above, at that point, you will be able to access the server within your network. If you need to access it outside your network (from public) there will be more to to do.
Here is my experience so far on the subject. I have searched and tried many of the things I found, but I have not had much chance in changing ports or accessing ERPNext on VirtualBox.
a. Using the ova image on virtualbox works great, but ERPNext is on port 8080. Have not successfully changed it.
b. Using the quick install on a Ubuntu installed VirtualBox server. Not able to access ERPNext from outside the server itself. I guess more linux knowledge is required to open the right ports and firewall settings. As these must be done manually.
c. Using the quick install on a Ubuntu Amazon S2 instance is a breeze and works flawlessly. I guess they know out to setup their linux. hehehe
I am testing on option a. above, and have setup a no-ip domain to my changing IP. And forwarded the port to my PC from the router, it works almost perfectly. Still have some issues with the 8080 port.