How to Connect you Pocket Pc Emulator to your Desktop Computer?

By: Leonardo Paneque

Have you tried to connect your Emulator to your host machine with no good results? This is a small article to let you know what might be happening.
When testing applications on your PocketPC or SmartPhone that uses the network, like consuming a web page or a web service, or simply coding an application that opens a connection to a database, you often test them with your own desktop machine acting as the server or host; the same PC where you are running the Emulator. You might have problems to do that but is easy to fix. I have seen some guys telling to setup the network adapter in the device, why? Don't do that, see, In Microsoft Visual Studio 2005 (DMA support) you just do this:

1)Install ActiveSync if you don't have it yet
2)Run the Emulator
3)Run the Emulator Manager in Visual Studio Tools Menu
4)Find your emulator's instance and "cradle" it
5)Active Sync will recognize the emulator as a real device and will connect.

Using this approach you can run and test installers and network applications with your Pocket PC Emulator, also notice that your virtual "Pocket PC" will be able to connect to any computer on your network, because now the device is 100% online in your network, so start playing with this.
If your PC does not have any network interface active, a TCP connection from the emulator to the host pc will not work, in that case you need to install the Microsoft Loopback Adapter, this will create a loopback on your PC and the emulator will believe you have a network card working.

So you can use the IP on that "virtual" network as the target for the connections from your emulator.

Programming
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 
 • 

» More on Programming
 



Share this article :
Click to see more related articles