Internet not accessible to Ubuntu Server on Windows 10 (ping works)

Discussions related to using VirtualBox on Windows hosts.
Post Reply
andreqts
Posts: 1
Joined: 14. Sep 2020, 17:41

Internet not accessible to Ubuntu Server on Windows 10 (ping works)

Post by andreqts »

Hi, I am trying to install Ubuntu Server on Virtual Box, in a Windows 10 machine.

I've tried Ubuntu Server versions 20 and 18, and the same sympton happened: I can ping any expernal IPs successfully, for example google IPs, it works perfectly, but when I try to use curl on any external machine, or even at the default local gateway (ping also works in this case), I get "Failed to connect port 80: Network unreachable"
I tried to connect to port 443 as well and received the same error.

In both cases, I left the network configuration at the NAT default, but I also tested with other configurations, like bridge, and the same thing happened. VirtualBox seems to block any TCP connections, although ping correctly works.

Can anyone give me some guidence, please? I don't know what more I could test.

Thanks in advance for any help!

Andre
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Internet not accessible to Ubuntu Server on Windows 10 (ping works)

Post by scottgus1 »

andreqts wrote:I can ping any expernal IPs successfully, for example google IPs, it works perfectly, ... or even at the default local gateway ... NAT default
Being able to Ping out of a NAT-connected guest is expected. Note that Windows Firewall blocks ping (ICMP Echo Request) so to ping a Windows PC in your network you'll have to enable ping in the Windows Firewall on the pinged PC. Can you ping other computers in the physical LAN from the guest? Does 'default local gateway' mean the NAT 10.0.2.# gateway, or the physical LAN gateway?
andreqts wrote:when I try to use curl on any external machine, or even at the default local gateway ... I get "Failed to connect port 80: Network unreachable"
I am assuming that your 'curl' attempts originate from the Ubuntu VM. Do the external machines have a service open at port 80 (opened in firewall too) to receive 'curl'?

Is your Ubuntu Server command-line only or GUI? If GUI, can you browse the internet in a browser?

In addition to the above questions, please provide command outputs of these two commands:

Windows host: 'ipconfig /all'

Ubuntu guest: 'ip address'

Also provide a zip of the guest's .vbox file: Please right-click the guest in the main Virtualbox window's guest list, choose "Show in Explorer". In the window that opens, zip the guest's .vbox file, and post the zip file, using the forum's Upload Attachment tab.
Post Reply