Access to ubuntu server running in virtualbox from external network?


Robin Dijkhof

Is it possible to access ubuntu server running in virtualbox from outside network? I set it up with a bridget network adapter, so it has its own IP. I can access the ubuntu server from inside my own network which is great (see this link) .

Next, I try to access it from outside the network. I use my phone (not WiFi of course)

curl ifconfig.me

This gives me my external IP. I tried to access it, but my browser can't connect. I noticed that all my devices have the same external IP. Is it possible to access the ubuntu server running in virtualbox from outside network, or do I need to install it on a separate system?

steel driver

Whether the server is a real or virtual machine, you need to forward the appropriate ports on your LAN router, i.e. translate the public IP you got from ifconfig.me to the server's private IP. You will need to refer to your router's documentation on how to do this for your specific device.

If you want to use the VM in NAT mode, you just need to perform the additional step of forwarding the equivalent port across that port, i.e. from the host's real LAN IP to the VM guest's virtual LAN IP.

Related


How to access Ubuntu server running in VirtualBox from outside

jaw I have installed Ubuntu Server 12.04 LTS on my laptop via VirtualBox. I have installed LAMP, OpenSSH, mail server. When logging in, I ran ifconfig. The inet address it gives me is 192.168.0.3. So, should this be the address where I should be able to access

How to access Ubuntu server running in VirtualBox from outside

jaw I have installed Ubuntu Server 12.04 LTS on my laptop via VirtualBox. I have installed LAMP, OpenSSH, mail server. When logging in, I ran ifconfig. The inet address it gives me is 192.168.0.3. So, should this be the address where I should be able to access

How to access Ubuntu server running in VirtualBox from outside

jaw I have installed Ubuntu Server 12.04 LTS on my laptop via VirtualBox. I have installed LAMP, OpenSSH, mail server. When logging in, I ran ifconfig. The inet address it gives me is 192.168.0.3. So, should this be the address where I should be able to access

Access Ubuntu server from VirtualBox

Jerikis I have installed Ubuntu Server 14.04 LTS via VirtualBox. I successfully installed Moodle following the instructions here. How can I access Moodle from another computer (on the same network)? I'm running ifconfig -aon a server , the server's IP address

Access Ubuntu server from VirtualBox

Jerikis I have installed Ubuntu Server 14.04 LTS via VirtualBox. I successfully installed Moodle following the instructions here. How can I access Moodle from another computer (on the same network)? I'm running ifconfig -aon a server , the server's IP address

Access Ubuntu server from VirtualBox

Jerikis I have installed Ubuntu Server 14.04 LTS via VirtualBox. I successfully installed Moodle following the instructions here. How can I access Moodle from another computer (on the same network)? I'm running ifconfig -aon a server , the server's IP address

How can I access a server running in VirtualBox from the host?

Kirkland I am running a web application on a VM. I can view the application localhost:8888through the browser inside the VM . I can't see the app from the host using the same URL. That's the goal. I tried it and VBoxManage modifyvm "VM name" --natdnshostresolv

How to access apache server running in virtualbox from host?

techiek7 I want to access Apache web server running in centos virtualbox. After connecting the laptop to the office LAN, I can access this web server using bridged network mode. But what I want to do is to access when no network is connected. Is virtual interf

How to access apache server running in virtualbox from host?

techiek7 I want to access Apache web server running in centos virtualbox. After connecting the laptop to the office LAN, I can access this web server using bridged network mode. But what I want to do is to access when no network is connected. Is virtual interf

How can I access a server running in VirtualBox from the host?

Kirkland I am running a web application on a VM. I can view the application localhost:8888through the browser inside the VM . I can't see the app from the host using the same URL. That's the goal. I tried it and VBoxManage modifyvm "VM name" --natdnshostresolv

Access a VNC server running in Android from Ubuntu

Akisman Panigrahi I am running ubuntu on an android phone and I have the address of its vnc server. Is it possible to access vncserver from another computer in the same network? I connected my laptop to my phone's ethernet hotspot and tried to connect localhos

Cannot access XAMPP web server from external network

Spedwards I currently have 4 websites running on my home desktop using XAMPP. They run on ports 80, 81, 7733 and 25293. The first three work fine when accessed from the external network, but the last one (25293) is not loaded. (Cannot access this site. ERR_CON

Cannot access XAMPP web server from external network

Spedwards I currently have 4 websites running on my home desktop using XAMPP. They run on ports 80, 81, 7733 and 25293. The first three work fine when accessed from the external network, but the last one (25293) is not loaded. (Cannot access this site. ERR_CON

Cannot access XAMPP web server from external network

Spedwards I currently have 4 websites running on my home desktop using XAMPP. They run on ports 80, 81, 7733 and 25293. The first three work fine when accessed from the external network, but the last one (25293) is not loaded. (Cannot access this site. ERR_CON

Cannot access XAMPP web server from external network

Spedwards I currently have 4 websites running on my home desktop using XAMPP. They run on ports 80, 81, 7733 and 25293. The first three work fine when accessed from the external network, but the last one (25293) is not loaded. (Cannot access this site. ERR_CON

Network access to VirtualBox VM from network PC

Tharik Kanaka Well, I've setup a VM (labeled PC2) in the PC's Virtual Box, and I'm hosting a web service in the VM (IIS). PC2-Windows Server 2003 VM-Windows 7 x86 Now I want to access the web service from another PC (labeled PC1) in the network that PC1 has co

Network access to VirtualBox VM from network PC

Tharik Kanaka Well, I've setup a VM (labeled PC2) in the PC's Virtual Box, and I'm hosting a web service in the VM (IIS). PC2-Windows Server 2003 VM-Windows 7 x86 Now I want to access the web service from another PC (labeled PC1) in the network that PC1 has co

Ubuntu Server - External SSH Access

Mojo713 I have an old MacBook running ubuntu installed. I have OpenSSH set up and ready to use it as a server for home media, fun scripting/copying, learning more programming, etc. My keys are on the host Ubuntu system on three other computers. It works fine o

Ubuntu Server - External SSH Access

Mojo713 I have an old MacBook running ubuntu installed. I have OpenSSH set up and ready to use it as a server for home media, fun scripting/copying, learning more programming, etc. My keys are on the host Ubuntu system on three other computers. It works fine o

Shut down Ubuntu Server running in headless VirtualBox

oxweiwei I'm running Ubuntu Server VBoxHeadlesswith . How can I send an ACPI shutdown signal through VirtualBox and have Ubuntu Server respect it and obey the shutdown signal? thanks If you want to shut down the guest Ubuntu, you have two options: Turn off the

Shut down Ubuntu Server running in headless VirtualBox

oxweiwei I'm running Ubuntu Server VBoxHeadlesswith . How can I send an ACPI shutdown signal through VirtualBox and have Ubuntu Server respect it and obey the shutdown signal? thanks If you want to shut down the guest Ubuntu, you have two options: Turn off the