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


Click here to return to the 'Communicate on both ways to Virtual PC, Mac OS X or another computer without using a router' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Communicate on both ways to Virtual PC, Mac OS X or another computer without using a router
Authored by: elgato on May 20, '04 11:52:37PM
To allow a communication on both sides "Mac OS X" & "Virtual PC", I did the following and it worked perfectly, I have a DSL connection and I had to switch the Network location everytime I wanted to connect to VPC or internet. First check if there is any entry for the ethernet/port
 en0 
by typing in the Terminal window:
 ifconfig -a 
it should be in the begining of the line "en0:", in my case I had no entry for "en0". Type the command:
 sudo /sbin/ifconfig en0 alias 192.168.1.2 
to remove:
 sudo /sbin/ifconfig en0 -alias 192.168.1.2 

You can put of course any IP address. ;-)

On VPC I have Windows installed and have set the Network TCP/IP settings as follows (Fixed IP Address):
IP Address: 192.168.1.4
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.2 (I'm not sure if it makes any difference, but I entered the Mac IP Address as mentioned above).

On Virtual PC, you have to set the Networking preferences of the Virtual Machine to "Virtual Switch".

You should be able to communicate on both ways. I have installed a server application on VPC and it worked fine. From the PC I was able to connect to my local Apache Web server.

Additional tip, you can also communicate with a second computer that way. I have a mini network with 2 computers connected via ethernet. The second computer has the address 192.168.1.5. This tip allows me to surf on my Mac via my standard internet connection and connect at the same time on my 2nd PC (not connected to the internet) and to VirtualPC.

I hope this will help some of you.
Best regards



[ Reply to This | # ]