Pocket PC Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!





Go Back   Thoughts Media Forums > POCKET PC THOUGHTS > Pocket PC Developer

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2007, 10:09 PM
Ponderer
Join Date: Dec 2003
Posts: 80
Default Obtaining IP Address of ActiveSynch PC

Obtaining IP Address of ActiveSynch PC

Here's a good one, you cradle a device via USB for the 1st time, by default CE devices use 192.168.55.100 and X.X.X.101 as the gateway.

how do you figure out the PCs IP address via software ?

[note: the device has not been configured yet at all, so you went a prog to go out and query this, it does not know any domain specific information, you could simulate an activesynch program on the CE device, but... there should be an easier way. ]
 
Reply With Quote
  #2 (permalink)  
Old 07-14-2007, 07:57 PM
Pupil
Join Date: Nov 2007
Posts: 26

When using Activesync the pc host name is always "PPP_PEER".
So you could get the IP with:
Code:
IPHostEntry host = Dns.GetHostByName("PPP_PEER");
string IP = host.AddressList[0].ToString();
 
Reply With Quote
  #3 (permalink)  
Old 07-15-2007, 11:24 AM
Ponderer
Join Date: Dec 2003
Posts: 80
Default PPP_PEER

Yes,

you can query by that name, but unfortunately it is always the same address: 192.168.110.11X.

Not sure why this was hardcoded this way.
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 03:53 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 RC7