Page 1 of 1
Nat problem
Posted: 17. Jul 2009, 15:59
by paolocollector
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
Re: Nat problem
Posted: 17. Jul 2009, 16:06
by Perryg
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.
Re: Nat problem
Posted: 17. Jul 2009, 16:12
by paolocollector
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?
Re: Nat problem
Posted: 17. Jul 2009, 16:19
by Perryg
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>
Re: Nat problem
Posted: 17. Jul 2009, 16:36
by paolocollector
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
Re: Nat problem
Posted: 17. Jul 2009, 16:51
by Perryg
Yes. Setup a second adapter using NAT in the guest settings.
Re: Nat problem
Posted: 17. Jul 2009, 21:48
by paolocollector
ok, i've done it and it works well now
Thanks a lot Perryg
Paolo
Re: Nat problem
Posted: 8. Oct 2009, 01:28
by Cypriot
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
Re: Nat problem
Posted: 8. Oct 2009, 03:55
by Perryg
@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.