OpenNETCF.Net.NetworkInformation.Ping

H

Harry Simpson

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
 
C

Chris Tacke, eMVP

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
 
H

Harry Simpson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top