How to set up VirtualBox Bridged Network on Windows 7 Host?

Posted by Tong Wang on Ask Ubuntu See other posts from Ask Ubuntu or by Tong Wang
Published on 2012-02-08T06:18:13Z Indexed on 2012/06/27 21:26 UTC
Read the original article Hit count: 182

Filed under:

I have virtualbox running on a Windows 2008 server, with a guest running ubuntu 10.04. The ubuntu guest is given a static IP of, which also has openssh installed. The guest has bridged network setup, I can ping from any machine in the LAN, the ubuntu guest can also access the LAN. However, when I try to PuTTY into the ubuntu machine, I always get "connection refused". Below are some setup details:

ubuntu IP:


sshd :



when I the following command, I can see that sshd is listening on port 22:

lsof -i tcp:22

Any idea?


It turned out to be a wrong VirtualBox Bridged Network setup. I give the Ubuntu guest a static IP of (assigned to eth0). Then in the Windows 7 host, in the Network and Sharing Center, there is a new connection named "VirtualBox Host-Only Network" after the bridge is setup, that connection is again given the same static IP of Once I change the "VirtualBox Host-Only Network" to automatically obtain an IP address, it's getting a different IP address of And now I can SSH into with no problem, even without touching hosts.allow and hosts.deny.

I've also noticed that in the properties windows (see screenshot below) of the "VirtualBox Host-Only Network", the second checkbox, "VirtualBox Bridged Networking Driver" is unchecked. While the same checkbox of the physical NIC (that is bridged to) is checked. So my further question is: is this how VBox bridged networking supposed to be setup? Any rationale behind this? I'd appreciate if someone could provide some explaination on VBox bridged networking setup on Windows host and I'll accept it as an answer.

VirtualBox Host-Only Network Properties

© Ask Ubuntu or respective owner

Related posts about virtualbox