Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using a Ubuntu 10.04 OS as host and Windows 7 as a guest OS. I want to run some Selenium test on my Ubuntu Linux OS whose Selinum server is launched on my Windows 7 guest OS. On the guest OS I can access the Selenium server as However, I am not able to access the same from my host OS.

Enter image description here

I tried a different solution described online, but this combination seemed rare, and I never shortlisted on any answer. Most of the things I've seen were to use the IP address as from the host, which left me trying from the host OS with hardly any luck.

share|improve this question
The solution given at [this][1] askubuntu forum solved my problem! [1]:… – bragboy Aug 16 '12 at 21:00

You need to use the Virtual OS's IP address. For Windows 7 as the guest, click on Start, type cmd and press Enter. Type IPCONFIG and press Enter. Look for the IPv4 Address, and use that in place of the IP address.

The issue is that each device (physical or virtual) requires its own IP address on the network in order to connect. In the default mode, VirtualBox will assign its own address and address range to the virtual machines, and "bridge" the connections with the host to get Internet Access. That is where the whole thing comes in. Your address may be different though, so that's why it's good to just double check as described above.

share|improve this answer
I found, even that did not work – bragboy Aug 16 '12 at 20:26
Did you check the firewall on the guest? – Canadian Luke Aug 16 '12 at 20:27
I have uploaded the settings as a screenshot. Please take a look – bragboy Aug 16 '12 at 20:33
I disabled the firewall too as you advised. I am using the NAT mode as opposed the Bridge mode – bragboy Aug 16 '12 at 20:33
From Ubuntu's terminal, can you ping – Canadian Luke Aug 16 '12 at 20:41

The error you have right now, is that the Guest is able to talk up to the Host, but is registering the wrong ip address for the callback. By using localhost /, you can tell Selenium node and grid instances to rely on local port forwarding.

Configure the Guest VM to use NAT Networking, and add a Port Forwarding for port 5555, and port 4444, leaving both ip addresses blank or set to You may also want to forward port 80, so that your Host can see the Guest web server. When using NAT, in the Guest machine, the ip address is the ip address to talk to the Host machine. Here are the commands:

Host Machine, as Hub

java -jar selenium-server-standalone.jar -role hub -port 4444

Guest Machine, as Node

java -jar selenium-server-standalone.jar -role node -host -port 5555 -hub

For the Windows virtual machines, be sure to configure the security settings, particularly for Internet Explorer. A guide can be found here:

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .