Hi all,
I just can't make Ubuntu answering to the host system (winxp).
I installed Virtualbox 3.0.2 on windows xp and Ubuntu 9.04 as guest system.
I have only one network adapter PCnet-FAST III (NAT).
After the basic installation of ubuntu i installed apache 2, and it works locally: firefox in ubuntu can reach the address localhost or 10.0.2.15.
However from firefox in windows I cant reach the address: when I type http://10.0.2.15 it gives me
In ubuntu, ipconfig gives me the address "inet addr:10.0.2.15", that I suppose I should use in windows to contact ubuntu.
I disabled all proxies and pctools firewall, but i still have the same result.
Even ping 10.0.2.15 does not work (Request timed out.).
However it works in Ubuntu, and also it works pinging from ubuntu 10.0.2.2 (I think that is Windows address).
Is there anything that i am missing?
Thanks
Paolo
Nat problem
-
paolocollector
- Posts: 11
- Joined: 17. Jul 2009, 15:46
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: linux ubuntu
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Nat problem
You need to visit the VBox users Guide Chapter 6. Virtual networking
Using NAT will work if you have it setup properly and the right ports forwarded.
Other than that you would need add either a host-only connection or switch to Bridged mode.
Using NAT will work if you have it setup properly and the right ports forwarded.
Other than that you would need add either a host-only connection or switch to Bridged mode.
-
paolocollector
- Posts: 11
- Joined: 17. Jul 2009, 15:46
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: linux ubuntu
Re: Nat problem
Thanks for replaying.
I have read chapter 6, but my understanding was that I dont need to set up any port forwarding to make it working between host and guest.
I understand that host connector would do what i want to do at the moment, i just wanted to start with nat to use it with port forwarding in the future.
Am I wrong? can I not use nat to contact guest from host?
I have read chapter 6, but my understanding was that I dont need to set up any port forwarding to make it working between host and guest.
I understand that host connector would do what i want to do at the moment, i just wanted to start with nat to use it with port forwarding in the future.
Am I wrong? can I not use nat to contact guest from host?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Nat problem
You can with port forwarding. Here is a snip from the manual.
<snip>
6.4.1. Configuring port forwarding with NAT
As the virtual machine is connected to a private network internal to VirtualBox and invisible to the host, network services on the guest are not accessible to the host machine or to other computers on the same network. However, VirtualBox can make selected services available outside of the guest by using port forwarding. This means that VirtualBox listens to certain ports on the host and resends all packets which arrive on them to the guest on the ports used by the services being forwarded.
<snip>
<snip>
6.4.1. Configuring port forwarding with NAT
As the virtual machine is connected to a private network internal to VirtualBox and invisible to the host, network services on the guest are not accessible to the host machine or to other computers on the same network. However, VirtualBox can make selected services available outside of the guest by using port forwarding. This means that VirtualBox listens to certain ports on the host and resends all packets which arrive on them to the guest on the ports used by the services being forwarded.
<snip>
-
paolocollector
- Posts: 11
- Joined: 17. Jul 2009, 15:46
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: linux ubuntu
Re: Nat problem
ooops,
I dindnt go into that part at all presuming i didnt need it yet.
I presume that the easiest thing to do for the moment is to set up a host-only connection to make the two working.
One more question: can I enable both together (nat + host-only) on two network cards, so that i can connect to the internet from the guest using nat and connect from host to guest using host-only?
Thanks again
Paolo
I dindnt go into that part at all presuming i didnt need it yet.
I presume that the easiest thing to do for the moment is to set up a host-only connection to make the two working.
One more question: can I enable both together (nat + host-only) on two network cards, so that i can connect to the internet from the guest using nat and connect from host to guest using host-only?
Thanks again
Paolo
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Nat problem
Yes. Setup a second adapter using NAT in the guest settings.
-
paolocollector
- Posts: 11
- Joined: 17. Jul 2009, 15:46
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: linux ubuntu
Re: Nat problem
ok, i've done it and it works well now
Thanks a lot Perryg
Paolo
Thanks a lot Perryg
Paolo
-
Cypriot
- Posts: 3
- Joined: 8. Oct 2009, 00:39
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: ubuntu
Re: Nat problem
Hi There i am having the same problem please help..
I have installed Ubuntu on windows7 x64 with VBOX 3.0.8 on NAT mode.
my problem is when i try to connect to 2222 by typing on internet explorer 192.168.1.100:2222 it is working ok
but when i try to connect 192.168.1.100:8000 it is not connecting
The connection was reset
The connection to the server was reset while the page was loading.
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" value="22"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" value="2222"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/GuestPort" value="80"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/HostPort" value="8000"/>
Where am i going wrong ????? please help.
i have uninstall the firewall and disable the windows firewall but still the same
I have installed Ubuntu on windows7 x64 with VBOX 3.0.8 on NAT mode.
my problem is when i try to connect to 2222 by typing on internet explorer 192.168.1.100:2222 it is working ok
but when i try to connect 192.168.1.100:8000 it is not connecting
The connection was reset
The connection to the server was reset while the page was loading.
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" value="22"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" value="2222"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/GuestPort" value="80"/>
<ExtraDataItem name="VBoxInternal/Devices/pcnet/0/LUN#0/Config/web/HostPort" value="8000"/>
Where am i going wrong ????? please help.
i have uninstall the firewall and disable the windows firewall but still the same
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Nat problem
@Cypriot
Cross posting is not allowed Please read the Forum Posting Guide.
You other posts will be deleted except one. Since this is not related to the OP in this post I will not be answering you here.
Cross posting is not allowed Please read the Forum Posting Guide.
You other posts will be deleted except one. Since this is not related to the OP in this post I will not be answering you here.