Access ERPNext outside the Virtualbox

The easy way to do this is to.setup port forwarding in virtual box. By default the guess OS uses 192.168.56.1 as IP Address…

In port forwarding set port 80 to 8080 for.instance. other pc can.access guess OS with erpnext inside by typing host ip (your win 7) e.g. 192.168.1.4:8080

Hope this helps

1 Like

jof2jc
Thanks a lot
It worked like charm

What should i do if i need to access it from another office
Right now iam on lan using switch
I will be moving to a router that is net enabled

Thanks again
Hemanth

The same way…just publish your host pc using public ip or setup a vpn…

welcome … krishnanhemanth
i have same problem if u solved it plus tell me
thanx

welcome …jof2jc
plz can u show how to do that step by step

thanx

Hi All,

Basically, if you are running EPRNext from a VirtualBox and wish to connect to it, the simplest way to do so is:

  1. Go to Network settings in your VirtualBox Manager for the Virtual Device
  2. Select Bridged Adapter
  3. Select the type of connection you have, its either en1: Wi-Fi or en0: Ethernet
  4. Save your settings
  5. Start your Virtual Device
  6. After you are logged in check what is the IP of your Virtual Device is by typing the command ifconfig in the terminal of your device.
  7. Take the eth0 IP address and use that to access ERPNext from anywhere within your LAN network.

NOTES:

  1. If you installed ERPNext as development version you need to do a bench start.
  2. By default ERPNext running on the virtual device will use port 80 so there is no need to enter port number.
  3. If you wish to connect from outside your LAN network, you will need to map your Virtual Device’s IP to an external IP.

Hope this helps.

Regards
Said

2 Likes

welcome saidsl ,

by this way can i connect my VirtualBox from another network i mean i can connect from another wifi network ?

and where exactly can i find IP of my Virtual Device ?

thanxx

@mostafa_galal

To connect from another wifi network or an external Network as I mentioned here

And to find the IP on your VD you need to type “ifconfig” in the terminal of the VD and obtain from there there.

Regards
Said

@ruchin78

Where is your virtualbox installed?
It is on a Windows or UBUNTU host mashine?

If you installed the VirtualBox on an UBUNTU host,
then you open in your host mashine (NOT in the Virtualbox!!)
the terminal (ctrl+alt+t) and then type ifconfig.
Now you should see your IP, looks like 192.168.X.XXX

You can access this by type:
your host IP:8080
OR TRY
localhost:8080

Hope it helps!

I m able to acceess erp next on local network but did’t know how to setup to access it from external network i wish to use port forward or vpn but didnt know how to do that can you please guide me with the detail steps

To access virtual box from outside network, you would need either setup VPN or use your host public ip.

You can setup VPN easily using some populars like logmein hamachi.

can u please mail me the details steps my mail id is dmzvul01@gmail.com as i didn’t know anything how to setup it and configure it

Hi.

I think, instead of asking for sending it in a private message, it is better to share it here, like that, all of us we can learn.

Thanks

Its Fine if anyone can share here also the details step to setup the VPN to access the VB local installation over internet

To setup a VPN this should be a good start -

https://openvpn.net/index.php/open-source/documentation/howto.html

If you do have Public IP on your host computer…you can just access your VM like this…http://yourpublicip:8080. In your Virtual Box network setting, add port forwarding to forward your host (port 8080) to your guest VM (port 80). That’s it!

If you don’t have Public IP, then you can just setup using any VPN clients that you prefer or use windows built-in VPN. Once this is setup, the same way you can access guest VM via http://vpn-ip:8080

Hope that helps

1 Like

@DMZVUL01

Setting up port forwarding is dependent on number of things.

  1. You need to obtain a static IP from your Internet Provider. This way you will not have to change your external IP everything to access ERPNext externally.
  2. You need to assign the server/workstation where ERPNext is installed with a static IP number as well so that your DHCP server/router does not automatically assign one to that machine. The reason for this is because:
    2.1. You will assign your external IP to route to the internal static IP you’ve assigned to the ERPNext machine.
    2.2. You will also assign the port to that machine.
  3. You will need to make these settings in your router/modem

Unfortunately, I cannot provide detail instructions as each router has a different setup.

As a general guide this article might help:

http://www.steves-internet-guide.com/internal-external-ip-addresses/

Regards
Said

1 Like

Thanks All Now I got access the of Computer via VPN but the pc has win server installed in it so when i access the same it shows me the iis page can anyone knows the solution
Now My Server has an static IP . | . I have installed erpnext on virtual box having ip 192.168.1.4 and i have setuped logmein hamachie to access the system. the system is accessing but i m unable to access erp next on the same. but i can access erp on local lan with the ip 192.168.1.4

Is there way to make the virtual box start automatically if there is a computer reboot? I have installed Erpnext production version on Windows 10 through Oracle Virtual Machine running Ubuntu. I would like to make the virtual machine to start automatically each time so that if we are connecting with another network we can still connect without having to first initiate the process of starting the virtual machine

A search of ‘Windows Startup’ turned up for example this that may help