Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Port Forwarding from Windows 7 to Virtual PC 2007

16 Mar 2010   #1

Win 7 , Linux Ubuntu
 
 
Port Forwarding from Windows 7 to Virtual PC 2007

Hello,

I have been working on the following problem for the past two days, and I am sure there must be a simple solution for it.

I have Windows 7 installed on my PC. I also have Virtual PC 2007 installed, and I am running a Virtual Server running Windows 2003 and IIS.

What I want to achieve is to direct http traffic to my virtual machine. So far, I have set up the router to forward http traffic to my PC, so now I just have to somehow set up my PC to forward to my Virtual Server.

I would be happy to receive any suggestions/comments.
Thanks in advance,
Lil.

My System SpecsSystem Spec
16 Mar 2010   #2

W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi
 
 

Hi there

The first thing is of course you'll have to define specific IP addresses for the machines you need to port forward to.

This means -

1) set DHCP OFF in the router.
2) set Networking option in the Virtual Machine to BRIDGED (or NAT)
3) Assign specific LAN IP addresses to HOST and Virtual machine.
4) Now set your port forwarding in the router to the INTERNAL LAN address of your Virtual machine.

If you use something like No-IP - Dynamic DNS, Static DNS for Your Dynamic IP its free BTW -- you can also access your VM remotely from OUTSIDE your LAN too.

Here's the setup from my router -- most are similar -- usually you'll find the setup in "Firewall" / Ports or some other setting for your router.




Cheers
jimbo


Attached Thumbnails
Port Forwarding from Windows 7 to Virtual PC 2007-lansetup.png  
My System SpecsSystem Spec
16 Mar 2010   #3

Win 7 , Linux Ubuntu
 
 

Thanks! I was able to set it up now I think. I saw that my virtual machine is visible in the router, so I could just set it up to forward port 80 to my virutal machine. I think this is fine now.

Now I have another problem. I have a test webpage "index.html" on my server, which I can see when I type localhost/index.html on my virtual server. From my PC I can see the test page by typing 192.168.0.26/index.html. This also works as expected.

The problem now is - how do I make this page visible from the outside? Shouldn't it work by using the router IP and then the filename, i.e. 188.222.x.x/index.html ? I have disabled the router firewall, so it allows incoming traffic. Is there anything else I have to do - because all it says in firefox is that:

Quote:
The connection has timed out
The server at 188.222.x.x is taking too long to respond.
I am not sure what else I have to set in order for it to work properly.
Thanks in advance,
Lil.
My System SpecsSystem Spec
.


16 Mar 2010   #4

W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi
 
 

Hi there

to make this page visible from the OUTSIDE you need to know the "Routers" IP address -- this is the IP address that the public internet sees you from.

This is quite difficult to test from INSIDE your LAN as the network usually won't allow you to ping or connect to an Internet address that is resolved by your router. You will be able to Ping the gateway which is normally something like 192.168.0.1 or 192.168.2.1 without any problem but pinging you actual IP address from within the LAN itself is likely to be blocked by your router --sometimes you can set the router to allow it BTW.

The best way for testing your server from OUTSIDE your LAN is to connect via a mobile USB data card or if you have a colleague next door or can get on a computer on a different LAN then try it that way.

Cheers
jimbo
My System SpecsSystem Spec
Reply

 Port Forwarding from Windows 7 to Virtual PC 2007





Thread Tools



Similar help and support threads for2: Port Forwarding from Windows 7 to Virtual PC 2007
Thread Forum
Solved Port forwarding(redirecting), NOT(!) port opening Network & Sharing
Port Forwarding Network & Sharing
Windows 7 Ultimate x64 Port Forwarding Issues. (Out of ideas) Network & Sharing
Port Forwarding in Virtual Machines e.g RDP to different VM's Virtualization
Port Forwarding Software
Port Forwarding Network & Sharing
port forwarding Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 10:31 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33