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: davec on Oct 30, '03 05:36:11PM

New Problem:
Connect Mac & hosted Virtual PC BOTH WAYS without a network?

I'm developing some cross platform software. Using codewarrior I cross-compile, and can remotely debug the windows version nicely, but only when connected to a network. (Using "Virtual Switch").

However, when there is NO network present, VPC refuses to run with Virtual Switch. Is there a way to manually set the IP addresses or futz with the networking somehow, so that I can see the VPC from the Mac when there is no network present? (and presumably vice versa) Kindof like just using an ethernet cable between 2 computers and setting each's IP address manually? This would rock my world.



[ Reply to This | # ]
Connect Virtual PC to local web server without a network
Authored by: kdkinsey on Nov 06, '03 04:08:34PM

Here's how I do bi-directional communication between VPC 6.1 and OS X while on the road. I've only tested this on Panther on my PBG4 1GHz, and it only works by sharing internet connection from airport card to built-in ethernet (DHCP served from built-in ethernet). The reverse doesn't work - VPC doesn't see the DHCP server running on the wireless interface. Not sure why. I hope this help!

1. Under System Preferences, set up Sharing to share "Airport" internet connection to "Built-in Ethernet." Apparently OS X will allow this, even though the built-in ethernet interface is inactive. A check with 'ifconfig' will confirm what's happening wrt to Panther's DHCP server. Even more amazing is that VPC will use it.

2. Ensure Virtual PC virtual switch is pointing to "built-in ethernet" and crank up (for me, XP Pro) with DHCP under windows.

3. That's it. After that, OS X can ping the VPC instance at the DHCP address assigned to it via internet sharing. VPC can ping the OS X Airport IP address (for me a fixed IP unrelated to any active airport network in the car). The apps communicate brilliantly between one another - no wires/routers/hubs necessary. Quite fast, too!

K



[ Reply to This | # ]
Connect Virtual PC to local web server without a network
Authored by: raprice on Feb 09, '04 06:31:24PM

You're describing exactly what I need to do (attach to a server running under W2K in VPC from a client on the Mac side -- without a LAN connection; running VPC 6.01, Panther on iBook G4)). However, I cannot get it to work as you describe (i.e. I cannot ping the W2K IP from the Mac). Perhaps some details will help.

1. Under System Preferences, set up Sharing to share "Airport" internet connection to "Built-in Ethernet." Apparently OS X will allow this, even though the built-in ethernet interface is inactive. A check with 'ifconfig' will confirm what's happening wrt to Panther's DHCP server. Even more amazing is that VPC will use it.
**What command & args do I use in terminal to see if this is working. I get
usage: ipconfig <command> <args> the command line in terminal.**


2. Ensure Virtual PC virtual switch is pointing to "built-in ethernet" and crank up (for me, XP Pro) with DHCP under windows.
**Within VPC, Settings: Networking: Virtual Switch, I cannot locate a 'built-in ethernet' option. Where should I be looking? On the W2K side, I get a "DHCP Enabled: Yes" in response to the ipconfi /all command.**

3. That's it. After that, OS X can ping the VPC instance at the DHCP address assigned to it via internet sharing. VPC can ping the OS X Airport IP address (for me a fixed IP unrelated to any active airport network in the car).
**How do you set a fixed Airport IP, i.e. what IP address, subnet and router number should I use? Normally I get these from the isp (to which I plan on NOT being connected).**



[ Reply to This | # ]
Connect Virtual PC to local web server without a network
Authored by: raprice on Feb 09, '04 05:09:05PM

You describe the exact set up I'm trying to use (VPC running a server, trying to connect from the Mac side, but without a LAN hooked up).
Have you been able to solve the problem of no LAN? Does the sudo ifconfig hint from pikupi (starting this thread) work for you?



[ Reply to This | # ]