Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
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 '13 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 Mativo Jun 2 '13 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 '13 at 3:33
    
Perhaps you need to open the port in Windows' firewall. Here's some resources. –  martineau Jun 2 '13 at 8:12
    
@martineau: thanks but still of no luck.. –  Aldee Mativo Jun 2 '13 at 14:04

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...

share|improve this answer
    
Isn't the port of the VM NATted anyway? –  Thomas W. Jan 17 at 14:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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