Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Connect Virtual PC to local web server without a network' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Connect Virtual PC to local web server without a network
Authored by: adodd on Sep 15, '03 11:24:47AM

I decided to use an IP on the range VPC gives my guest OS.

For example, I have an NT box, and the preferences in VPC for Networking are for "Shared Networking".

When doing an IPCONFIG from the command line, it shows my IP address (as given my VPC) as:
IP Address . . . . 192.168.131.69
Subnet Mask . . . 255.255.255.0
Default Gateway . . 192.168.131.254

I decided to use .253 since that's not in use inside VPC and unlikely to be chosen by VPC as an address for my guest OS. So, from the Terminal on my OSX box I typed:

sudo ifconfig lo0 inet 192.168.131.253 netmask 255.255.255.0 alias

This just saves me from having to change this whenever I'm on different networks or get a different DHCP reservation.



[ Reply to This | # ]
Connect Virtual PC to local web server without a network
Authored by: lloydi on May 16, '05 04:19:18AM

I have opened the scripts settings in VPC and set Networking Type to ‘Shared Sockets'

I have run the ifconfig command on Terminal as so:

sudo ifconfig lo0 inet 192.168.131.253 netmask 255.255.255.0 alias

I then tried to type a web address in a browser running on VPC for a site that is served up using Apache running on the Mac (dev.vwkombi.com). This address works when browsing on the Mac, but does work on Virtual PC ("Address cannot be found").

Have I missed any steps?

Note that I am not on a network of any kind – I want to be able to get VPC to access these Mac/Apache hosted sites without me being plugged in anywhere (developing on a laptop)

Thanks



[ Reply to This | # ]