OpenNETCF.Net.NetworkInformation.Ping

  • Thread starter Thread starter Harry Simpson
  • Start date Start date
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
 
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
 
Back
Top