Connect to internet from device emulator in your VPC

I’m writing some applications and demos for the Summer Class using the .NET Compact Framework 3.5. For one of them I need the internet, but couldn’t connect. Some problem about the device emulator that can’t connect due to Virtual PC. I’ve found the solution now and wanted to share it.

First, install Active Sync 4.0 or higher. I’ve used 4.5. Then go to connection settings and set “Allow connections to one of the following” to “DMA”. Press okay.

devicemanagerThe simplest way for anyone to get the Mobile Device Emulator running is to start a new smart device project and build and deploy the project, or plain press “F5”. You’re now connected. In Visual Studio choose “Tools” and select “Device Emulator Manager”. Now one device should have some “play” icon in front of it, as in the screenshot on the right. Right-click the running emulator and choose “Cradle”. ActiveSync will start syncing stuff.

Proxy server
It’s possible you’re browsing the internet using a proxy server. Be sure to configure it. In the Windows Mobile start menu, select “Settings”. Select the tab “Connections” at the bottom and then select the “Connections” icon. Select “Manage existing connections” and select the “Proxy settings” tab at the bottom.

What network
Windows Mobile has two preferences on what network/connection to use for either internet or private network stuff. In my case it wanted to connect to the internet via an ISP. Of course I don’t have one in my emulator, so I had to change it to “My work network”. You can do this by selected “Settings” in the start menu, then select the “Connections” tab and then the “Connections” icon. Select the “Advanced” tab at the bottom and then press the “Select networks” button. In the top button set the combobox to “My work network” and you should have internet.

UPDATE:
For some reason, Windows Mobile suddenly configures a proxy server in its settings, completely unknown to me. I have no idea where it comes from and I’m not using a proxy server anywhere. If I uncheck it, I can connect again. Very weird.

When first cradling my emulator ActiveSync cannot connect for some weird reason. In ActiveSync I choose “Connection settings…” from the file menu, choose the upper-right “connect” button and immediately cancel it. Then it’s suddenly able to connect.

You just gotta love this stuff! 🙂

You may also like...

7 Responses

  1. Roberto Calcagno says:

    Hi,
    I am an electrical engeneer student from Chile.
    I have to design a device who mesure the power and that can put the datas on internet.
    In particular my job should be to design the internet conncetion.

    Do you have any idea of the way i can do that?

    thanks
    roberto
    [email protected]

  2. No I don’t… A device isn’t neccesarely mobile so maybe this isn’t what you’re looking for. There are so many things I don’t know about the requirements I couldn’t give you anything as for how to solve it.

    Sorry 🙂

  3. Alex says:

    I have tried but I don’t see the “start” button… I’d like to know if you could give me a few more details on what I am missing.

    1. I am using a Samsung Blackjack II
    2. I am using Visual Studio 2008 Professional
    3. I downloaded and installed Active Sync 4.5
    4. I set the Connection Settings to “DMA” as you mentioned
    5. I created a new dummy project for Windows Mobile
    6. I go to the Emulator Device Manager – but nothing…

    Oh I rebooted multiple times.

    Any help would be greatly appreciated.

    THanks,
    Alex

  4. hoodwing says:

    Is there any emulator that can be used on Pc to brows the internet free of charge?

    [email protected]

  5. jojo says:

    I just wanted to thank you a lot for this article.
    It really helps !

  6. Karthik says:

    Thanks a ton. it really helped. keep up the great work.

  7. Grace says:

    Hi,
    Im working on windows mobile application. As Im working in an organization I use a proxy server. Im using visual studio 2008. I have followed all the steps but Im unable to connect the emulator to the internet. Can you assist me in this issue.

    thanks

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.