Whether you can come up with a right answer or not is going to depend on how
much you're willing to restrict what devices it will work with. Since
you're using a 'random' TCP port number, that seems to indicate that you're
using Windows Mobile 5. If that's the case, you can catch the right IP 95%
of the time by using 169.254.2.1. Note, however, that when the device is
not connected to the desktop computer, you *should* get a
network-unreachable error when you try to connect to that address.
Paul T.
"Simon Hart" <srhartone@(nospam)yahoo.com> wrote in message
news:44F98B58-FD6F-493C-A768-(E-Mail Removed)...
>I have tried that and it doesn't work. Don't forget this is connecting from
>a
> Desktop and connecting to a socket running on the device.
>
> Simon.
>
> "<ctacke/>" wrote:
>
>> Use a hostname of "PPP_PEER" instead on an IP address and let ActiveSync
>> handle the routing.
>>
>> -Chris
>>
>>
>> "Simon Hart" <srhartone@(nospam)yahoo.com> wrote in message
>> news
0974FD8-D4DD-4BC2-9F48-(E-Mail Removed)...
>> >I have written a socket service which listens for messages that runs on
>> >a
>> > device (as we need to support push technology from the server/desktop).
>> > This
>> > runs and waits for connection and messages OK.
>> >
>> > When I try and connect from the desktop to the device's port and IP
>> > address
>> > it is listening on, I get an error which specifies the network is
>> > unreachable.
>> >
>> > What IP address should I use when connected via ActiveSync, I see
>> > ActiveSync
>> > uses IP address: 192.168.55.101 but this seems to be an internal IP
>> > address.
>> >
>> > This exercise it purely for prototyping a concept and in the real world
>> > we
>> > will use GPRS/GSM/Wi-Fi over the internet.
>> >
>> > Regards
>> > Simon.
>> >
>>
>>
>>