I'm attempting to set up a node.js server on my Ubuntu guest OS running on VirtualBox.

A simple "Hello World" HTTP server runs fine if I try accessing it from a browser on the Ubuntu image, but I'm struggling with opening the page on a browser in the host OS, which is Windows 7.

I'm using the "Bridged Adapter" setting in VirtualBox and am getting a 192... local IP address for the guest machine.

The server listens on port 8124, so I forwarded that port (TCP and UDP) in my router settings.

When I try opening [Ubuntu IP Address]:8124 in my browser, I get a 'could not connect' message. As I mentioned before, "localhost:8124" on an Ubuntu browser shows me the "Hello World" page I want.

Any help on this issue would be much appreciated.

2 Answers 2


You have to open the Port on your guest system too. I had a similar error in my system and also set the firewall rules after it was suddenly

  • I did a "ufw enable," then ufw allow 8124. Doesn't look like that did it either :/
    – funseiki
    Jul 14, 2012 at 20:55
  • Actually, it looks like I got it. I was specifying '' as the address - I left it blank and it looks like it works.
    – funseiki
    Jul 14, 2012 at 21:05
  • How do I open a port on my guest system?
    – Vince
    Jul 21, 2018 at 8:30

It may be too late but I figured out a way to achieve it in very simple steps.

  • In Network settings of Guest OS, use Bridged Adapter.
  • Run Node.js server with IP instead of .

Above settings works and I can access the server from other machine in same networks as well.

You must log in to answer this question.

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