srhartone
Thu Oct 04 12:23:06 PDT 2007
If using WM5 or later with ActiveSync 4.2 or later you can in fact listen on
the loopback network endpoint on the desktop and the PPC can initiate a
connection directly. Generally the IP will be 169.254.2.2 and the device will
be 169.254.2.1.
You can read the registry to gurantee the IP of the desktop endpoint. As
Chris pointed out this is just the loopback network IP.
See this thread for more information on reading the registry:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/42dda381b94f7996/dfc4ec7af3802492?lnk=gst&q=desktop+ip+simon+hart&rnum=4#dfc4ec7af3802492
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
"IP address of the activesync PC" wrote:
> Hi,
>
> I have a windows mobile 6 device connected to desktop thru activesync. Now
> how can i get the IP address of the desktop PC inside my windows mobile
> device programmatically. My intention is to make my desktop as winsock server
> and the mobile device as the client.
>
> I am able to get the IP address of the device from desktop thru active sync
> APIs.
>
> Thanks