PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework OpenNETCF.Net.NetworkInformation.Ping

Reply

OpenNETCF.Net.NetworkInformation.Ping

 
Thread Tools Rate Thread
Old 17-04-2008, 08:51 PM   #1
Harry Simpson
Guest
 
Posts: n/a
Default OpenNETCF.Net.NetworkInformation.Ping


I've been using this to ping an IP wirelessly to see if the TCP printer is
"online" wirelessly. Works great.
I know that in ActiveSync debug, the wireless is disabled but I can run
other syncing to a server over the lan via the ActiveSync just fine but the
ping always returns either a 1 or a 1000 which aren't even IPStatus
enumerations.....
Any idea as to what's happening here?

I'm not a network guru by any means.....

Is this pinging only applicable to wireless? Why is the syncing to another
server via a web service working fine yet I cannot ping the IP for that
server using the OpenNETCF.Net.NetworkInformation.Ping during an ActiveSync
debug session.....???

Any ideas?

TIA


  Reply With Quote
Old 17-04-2008, 08:59 PM   #2
Chris Tacke, eMVP
Guest
 
Posts: n/a
Default Re: OpenNETCF.Net.NetworkInformation.Ping

Because ActiveSync doesn't relay ICMP packets. It's like having a ping
firewall between the two endpoints.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com



"Harry Simpson" <hssimpson@phgt.net> wrote in message
news:%23vV6oRMoIHA.524@TK2MSFTNGP05.phx.gbl...
> I've been using this to ping an IP wirelessly to see if the TCP printer is
> "online" wirelessly. Works great.
> I know that in ActiveSync debug, the wireless is disabled but I can run
> other syncing to a server over the lan via the ActiveSync just fine but
> the ping always returns either a 1 or a 1000 which aren't even IPStatus
> enumerations.....
> Any idea as to what's happening here?
>
> I'm not a network guru by any means.....
>
> Is this pinging only applicable to wireless? Why is the syncing to
> another server via a web service working fine yet I cannot ping the IP for
> that server using the OpenNETCF.Net.NetworkInformation.Ping during an
> ActiveSync debug session.....???
>
> Any ideas?
>
> TIA
>



  Reply With Quote
Old 17-04-2008, 10:56 PM   #3
Harry Simpson
Guest
 
Posts: n/a
Default Re: OpenNETCF.Net.NetworkInformation.Ping

Thanks Chris!

That explains it....

Harry

"Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> wrote in message
news:%23X$sBXMoIHA.3532@TK2MSFTNGP03.phx.gbl...
> Because ActiveSync doesn't relay ICMP packets. It's like having a ping
> firewall between the two endpoints.
>
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded community
> http://community.OpenNETCF.com
>
>
>
> "Harry Simpson" <hssimpson@phgt.net> wrote in message
> news:%23vV6oRMoIHA.524@TK2MSFTNGP05.phx.gbl...
>> I've been using this to ping an IP wirelessly to see if the TCP printer
>> is "online" wirelessly. Works great.
>> I know that in ActiveSync debug, the wireless is disabled but I can run
>> other syncing to a server over the lan via the ActiveSync just fine but
>> the ping always returns either a 1 or a 1000 which aren't even IPStatus
>> enumerations.....
>> Any idea as to what's happening here?
>>
>> I'm not a network guru by any means.....
>>
>> Is this pinging only applicable to wireless? Why is the syncing to
>> another server via a web service working fine yet I cannot ping the IP
>> for that server using the OpenNETCF.Net.NetworkInformation.Ping during an
>> ActiveSync debug session.....???
>>
>> Any ideas?
>>
>> TIA
>>

>
>



  Reply With Quote
Old 30-04-2008, 04:27 PM   #4
Harry Simpson
Guest
 
Posts: n/a
Default Re: OpenNETCF.Net.NetworkInformation.Ping

So how do we test for 1. net connection and 2. web service connection while
running the application in debug via ActiveSync?

Thought about:
ping with http call.
But that fails down if ping fails when connected via ActiveSync.Something
like this:
If PingOK OR ActiveSyncOK then

If httpOK then

Return true

End

End

Return False

What's the best way to handle the CheckConnection that would work in debug
ActiveSync too or do ya just keep in mind the restrictions?



TIA

Harry

"Harry Simpson" <hssimpson@phgt.net> wrote in message
news:%23lfMdXNoIHA.672@TK2MSFTNGP02.phx.gbl...
> Thanks Chris!
>
> That explains it....
>
> Harry
>
> "Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com> wrote in message
> news:%23X$sBXMoIHA.3532@TK2MSFTNGP03.phx.gbl...
>> Because ActiveSync doesn't relay ICMP packets. It's like having a ping
>> firewall between the two endpoints.
>>
>>
>> --
>>
>> Chris Tacke, Embedded MVP
>> OpenNETCF Consulting
>> Giving back to the embedded community
>> http://community.OpenNETCF.com
>>
>>
>>
>> "Harry Simpson" <hssimpson@phgt.net> wrote in message
>> news:%23vV6oRMoIHA.524@TK2MSFTNGP05.phx.gbl...
>>> I've been using this to ping an IP wirelessly to see if the TCP printer
>>> is "online" wirelessly. Works great.
>>> I know that in ActiveSync debug, the wireless is disabled but I can run
>>> other syncing to a server over the lan via the ActiveSync just fine but
>>> the ping always returns either a 1 or a 1000 which aren't even IPStatus
>>> enumerations.....
>>> Any idea as to what's happening here?
>>>
>>> I'm not a network guru by any means.....
>>>
>>> Is this pinging only applicable to wireless? Why is the syncing to
>>> another server via a web service working fine yet I cannot ping the IP
>>> for that server using the OpenNETCF.Net.NetworkInformation.Ping during
>>> an ActiveSync debug session.....???
>>>
>>> Any ideas?
>>>
>>> TIA
>>>

>>
>>

>
>



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off