I had a problem with opening port between my host (windows 7) and a virtual box (windows xp) system.

On my host win7 system, I added a port from the inbound rule (port 777) under the firewall advance settings' exception tab. I also added the same port under the firewall exception from the virtual box (winxp) system. Now, when I attempted to do this from my host win 7 system:

telnet ip_add_of_winxp_vbox 777

and vice versa (from the virtual box winxp system):

telnet ip_add_of_host_pc 777

I was not able to get connected.

On my host machine (the win7) I had apache (xampp) installed so in my winxp system from the virtual box, I attempted:

telnet ip_add_of_host_pc 80

using port 80, I was able to get a response. But using other ports (port 777 and others), I cannot really connect. Can you help me out of here guys?

PS: I can ping both ways however but just telnet-ting a specific custom created port doesn't work. Both systems were connected on the same gateway.

  • What app are you running on port 777? Just opening a hole in the firewall doesn't open the port on the machine. Go open a cmd prompt and type "netstat -ano | find '777' " and see if it's open. Unless of course you set apache to listen on port 777
    – Jason H
    Jun 2, 2013 at 3:28
  • thanks Jason. but it does not actually appeared from the netstat -ano.. I am attempting to open a port for testing on my python program.. any suggestions?
    – Aldee
    Jun 2, 2013 at 3:32
  • Yeah, if you don't see it when you run the netstat -an command then your python script is failing. regardless of your firewall if it doesn't show up with the netstat command it's not open. Check your python script.
    – Jason H
    Jun 2, 2013 at 3:33
  • Perhaps you need to open the port in Windows' firewall. Here's some resources.
    – martineau
    Jun 2, 2013 at 8:12
  • Maybe you can solve your networking problem by enabling the logging of packets on the guest or host side.
    – martineau
    Jun 2, 2013 at 15:49

1 Answer 1


Both the OS's are seems to be in a single physical machine...one is on virtual machine and another on physical machine on the same system(Laptop)...

So try different ports for diffrent OS's...

I mean try 777 for windows 7 and 778 for xp in virtual box it may resolve the issue...

  • Isn't the port of the VM NATted anyway? Jan 17, 2014 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.