Dennis van der Stelt

The only way to win is to learn faster than anyone else

Community

Email Notifications

News

  • Addicted to Refactor! Pro

I read...

I Use...

Tags

Recent Posts

Archives

Blog Subscription Form

  • Email Notifications
    Go

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! :-)

Comments

Roberto Calcagno said:

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

c20ster@gmail.com

# August 28, 2007 1:05 AM

Dennis van der Stelt said:

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 :)

# August 28, 2007 12:08 PM

hoodwing said:

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

hoodwing@yahoo.com

# September 25, 2008 2:18 PM

Dominios y Demonios said:

Confieso que soy un adicto a los blogs y a las distintas variantes que existen de los mismos. De entre

# February 21, 2009 10:55 PM

jojo said:

I just wanted to thank you a lot for this article.

It really helps !

# April 16, 2009 6:25 PM

Grace said:

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

# January 19, 2011 2:24 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Please add 7 and 7 and type the answer here: