Tips for Debugging Windows Mobile Network Programming using Real Devices and Emulators

Assumption: The host computer’s IP Address is 192.168.1.100.

For Windows Mobile Classic/Professional Devices or Emulators

If you connect your device to ActiveSync, the following IP addresses will be assigned:
Comp: 169.254.2.2
Device: 169.254.2.1

If you connect your emulator to Activesync, the following IP addresses will be assigned:
Comp: 192.168.1.100
Emulator: 192.168.1.101 (next available IP address)

If you use Network Card Mapping for your emulator, the following IP addresses will be assigned:
Comp: 192.168.1.100
Emulator: 192.168.1.101 (next available IP address)

Hence, for sockets programming testing using emulator, set the server and client to rendezvous at the computer’s IP address and not 169.254.2.2.

For sockets programming testing using real device, set the server and client to rendezvous at 169.254.2.2.

For Windows Mobile Standard Devices or Emulators

If you connect your emulator to ActiveSync, the following IP addresses will be assigned:
Comp: 192.168.1.100
Emulator: 192.168.55.101 (next available IP address)

If you use Network Card Mapping for your emulator, the following IP addresses will be assigned:

Comp: 192.168.1.100
Emulator: 192.168.1.101

Hence, for sockets programming testing using emulator, set the server and client to rendezvous at the computer’s IP address and not 169.254.2.2 and use network card mapping.

trackback

Advertisements

About Jaggi
love technology, always updated on the latest and current happenings, seminars, tech.Ed, virtual days! Be Yourself!

One Response to Tips for Debugging Windows Mobile Network Programming using Real Devices and Emulators

  1. Pingback: Next Post « ĵ.ã.ğ.ğ.ĭ.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: