The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Connecting to the local network from the Smart Device emulator

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Peter van Ooijen

Posts: 284
Nickname: petergekko
Registered: Sep, 2003

Peter van Ooijen is a .NET devloper/architect for Gekko Software
Connecting to the local network from the Smart Device emulator Posted: Jul 11, 2006 2:14 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Peter van Ooijen.
Original Post: Connecting to the local network from the Smart Device emulator
Feed Title: Peter's Gekko
Feed URL: /error.htm?aspxerrorpath=/blogs/peter.van.ooijen/rss.aspx
Feed Description: My weblog cotains tips tricks and opinions on ASP.NET, tablet PC's and tech in general.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Peter van Ooijen
Latest Posts From Peter's Gekko

Advertisement

Mobile apps make great consumers for a webservice. But debugging such a scenario can be hard to set up. I lost some hair in getting it to work right; but in the end it was simple. There are loads and loads of good manuals how to setup your device, this one on Akhune's blog tells all, up to connecting to the internet from the emulator. All except how to connect to the web server of the PC your emulator is running on. Which didn't work for me and that's what I really needed to debug my app.

In a typical scenario you have one solution with a webservice and the "smart device app"; where the latter has a web reference to the service. The first problem is the URI the smart app needs to contact the service. The emulator has an emulated network card and so becomes part of your network. It will not be able to find localhost, what works well is using the IP address of the PC hosting the emulator. The emulator and the PC are two nodes in the network. To the PC the emulator is an external source trying to access your local web server. By default the Windows firewall prohibits this. I had bumped into this before, this time I had to add the web server (HTTP) protocol to the settings of the Local Area Connection.

Now the emulator runs as intended. Another great setting of the emulator is zoom under the display options.

It will result in a giant PDA, very readable, very easy to navigate.

Read: Connecting to the local network from the Smart Device emulator

Topic: Get Your Applications Ready for Windows Vista Previous Topic   Next Topic Topic: New book: Programming Microsoft Visual C# 2005: The Base Class Library

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use