PC Review


Reply
Thread Tools Rate Thread

Connecting to a Socket on the device when connecting via ActiveSyn

 
 
=?Utf-8?B?U2ltb24gSGFydA==?=
Guest
Posts: n/a
 
      17th Aug 2006
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.

 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      17th Aug 2006
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
news0974FD8-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.
>



 
Reply With Quote
 
=?Utf-8?B?U2ltb24gSGFydA==?=
Guest
Posts: n/a
 
      17th Aug 2006
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
> news0974FD8-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.
> >

>
>
>

 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      17th Aug 2006
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
>> news0974FD8-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.
>> >

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?U2ltb24gSGFydA==?=
Guest
Posts: n/a
 
      17th Aug 2006
Not sure what you mean by 95% of the time it will work?

I did try that IP address from the desktop and still get an unreachable
error. I didn't add in my previous posts that I am using Windows Mobile 5
Emulator but using the built in functionality from the Device Emulator
Manager to connect via ActiveSync on the desktop. So it is not a physical
device but this shouldn't be a problem.

Simon.

"Paul G. Tobey [eMVP]" wrote:

> 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
> >> news0974FD8-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.
> >> >
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      17th Aug 2006
It's possible for the user to change it, so you can't be 100 sure. If
things are set up in the default configuration, 169.254.2.1 will be the
device IP and 169.254.2.2 will be the PC IP when the two are connected via
USB.

I can't help you with the emulator. I have no idea if it will even work.

Paul T.

"Simon Hart" <srhartone@(nospam)yahoo.com> wrote in message
news:3418C58A-7D24-490C-B4A0-(E-Mail Removed)...
> Not sure what you mean by 95% of the time it will work?
>
> I did try that IP address from the desktop and still get an unreachable
> error. I didn't add in my previous posts that I am using Windows Mobile 5
> Emulator but using the built in functionality from the Device Emulator
> Manager to connect via ActiveSync on the desktop. So it is not a physical
> device but this shouldn't be a problem.
>
> Simon.
>
> "Paul G. Tobey [eMVP]" wrote:
>
>> 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
>> >> news0974FD8-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.
>> >> >
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with connecting udp socket ElvisRS@gmail.com Microsoft C# .NET 1 21st Dec 2007 05:54 PM
asynchronous socket problem when connecting to localhost darthghandi@gmail.com Microsoft C# .NET 9 17th Feb 2007 08:51 AM
Re: Connecting to Desktop Socket via ActiveSync Paul G. Tobey [eMVP] Microsoft Dot NET Compact Framework 2 24th Jan 2007 11:02 PM
Server Socket Synchronization When Connecting? O.B. Microsoft C# .NET 3 27th Oct 2006 05:58 AM
Help! Connecting a USB-b to a parallel socket ebakunin@gmail.com Printers 7 1st Jan 2005 08:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:54 PM.