Accessing guest app using host-only networking.
Posted: 10. May 2009, 23:40
Using VirtualBox 2.2.2
Windows XP SP2 host
Ubuntu 9.04 guest
I want to run an application (couchdb) that listens to port 5984 on the guest system and access it from the host system. My interpretation of the manual is that I should be able to do that using host-only networking. I also want to be able to access the internet from the guest.
I've tried several combinations of configurations, but with no success. While I have no problem reaching the Internet from the guest, I am unable to connect with couchdb.
My initial approach was to leave the original NAT networking on adapter 1 while installing host-only networking on adapter 2. If I then configure couchdb to listen to 127.0.0.1 and run it on the guest, I can connect to it from the guest but, to no surprise, not from the host. But if I reconfigure it to listen to 192.168.0.1 or 192.168.0.2, I cannot reach it from either the host nor the guest (in each case addressing port 5984).
One recommendation I've seen reading through other postings is to make the gateway address the same as the rest of the system, but I don't see any way to configure the gateway address for the adapter.
Beyond that, after a lot of experimentation and looking to other postings for suggestions, I am out of ideas and possibilities. Thank you in advance for any suggestions.
Windows XP SP2 host
Ubuntu 9.04 guest
I want to run an application (couchdb) that listens to port 5984 on the guest system and access it from the host system. My interpretation of the manual is that I should be able to do that using host-only networking. I also want to be able to access the internet from the guest.
I've tried several combinations of configurations, but with no success. While I have no problem reaching the Internet from the guest, I am unable to connect with couchdb.
My initial approach was to leave the original NAT networking on adapter 1 while installing host-only networking on adapter 2. If I then configure couchdb to listen to 127.0.0.1 and run it on the guest, I can connect to it from the guest but, to no surprise, not from the host. But if I reconfigure it to listen to 192.168.0.1 or 192.168.0.2, I cannot reach it from either the host nor the guest (in each case addressing port 5984).
One recommendation I've seen reading through other postings is to make the gateway address the same as the rest of the system, but I don't see any way to configure the gateway address for the adapter.
Beyond that, after a lot of experimentation and looking to other postings for suggestions, I am out of ideas and possibilities. Thank you in advance for any suggestions.