Virtual PC communicating between guest and host

Hi,

I’m using the latest version of MS Virtual PC. I have a bunch of Windows VMs for various reasons. But I also have one that’s an Ubuntu server which I’m using just to be able to run a Tomcat server and not have to worry about it interfering with ports and all on the host system.

The Ubuntu VM is set up to use the network card directly, and all works fine. But gets assigned an its IP address by the DHCP server, this is the problem. Since I’m not guaranteed the same IP every time, and pretty much every day I get a different IP. I’m on a corporate network so I haven’t bothered trying a static IP but I doubt it would work, and network admins may not like that very much.

This is a problem since I have to log in every time and check what IP it’s given me before I can connect to the site that I’m running. Also I want to configure my hosts file (on the host) and create some virtual hosts on the VM. This won’t work if the IP keeps changing. Also for some reason the address the VM by its host name doesn’t work.

So I tried switching to NAT, at least then it always gets the same IP, and I can probably even set up a static IP. But with NAT the host system can’t see the VM. Anyone know how to set it up with NAT where the host can see the VM?

Thanks