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'm running a virtual instance of Ubuntu Server using VirtualBox in Windows. To access the site hosted in it, I want to forward port 80 to Ubuntu, so that I can simply go to localhost to mess around with it.

But I'm not sure it won't mess up my regular connectivity. Is there anything that will botch the regular internet/network access?

share|improve this question
    
Web server is running in Ubuntu, right? –  Sachin Divekar Dec 5 '11 at 19:48
    
@SachinDivekar Yes. –  Oxwivi Dec 5 '11 at 19:59
    
So your wording is wrong. Here you need to forward port 80 to Ubuntu from Windows. This will not affect your regular network/internet access. –  Sachin Divekar Dec 5 '11 at 20:01
    
@SachinDivekar Won't any HTTP requests, including those to websites on the internet, be routed through the virtual OS? And thanks for pointing that out. –  Oxwivi Dec 5 '11 at 20:32
    
It should not, because the outgoing packets would have destination ip as some public ip, so VB should not forward that request to VM. I think you better put 127.0.0.1 as Host IP in your rule. –  Sachin Divekar Dec 5 '11 at 20:45

1 Answer 1

up vote 2 down vote accepted

It should not affect regular internet/network access

The only caveats would be if you were also running a webserver (or other service) listening on port 80.

If that were the case, it is also possible to forward another port (ex. 1234) to port 80 such that you could access it in a web browser by http://localhost:1234

share|improve this answer
    
I don't have anything listening on port 80 currently. At least nothing I'm aware of. Is there a way to check and make sure? –  Oxwivi Dec 5 '11 at 20:00
    
@Oxwivi you can check if there is something running on port 80 by using telnet windows_host 80 from your Ubuntu machine. –  Sachin Divekar Dec 5 '11 at 20:03
1  
You can also use "netstat -a -b" from an administrator command prompt to get all processes including services –  arcyqwerty Dec 5 '11 at 20:06
    
@arcyqwerty +1 just now I come to know that windows also has netstat available. –  Sachin Divekar Dec 5 '11 at 20:14

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.