Ping Gateway Computer

  • Thread starter Thread starter MDB
  • Start date Start date
M

MDB

Hello All,

I have an app that communicates via a ad-hoc wi-fi connection. It appears
to me that since the connection is via a ad-hoc, my device is always showing
that I am connected although I am not. So my question is, is it possible
for me to pragmatically ping my host computer to see if I get a reply?

Thanks In Advance
 
Yes, you can do a ping programmatically, but I don't think that you have any
of the declarations for the API functions that you'd need to call to
actually do a real ping. It seems to me that one of the C SDKs had the code
for ping in it. If so, you could build that into a DLL, exporting a single
function which your managed code could easily call, passing an IP or name,
maybe, and getting back an indication of how successful the ping was. You
might search the Windows CE archives for ping code...

http://groups.google.com/groups?hl=en&group=microsoft.public.windowsce

Paul T.
 
Here are a couple of tips to get more reliable ad hoc connections. Set
both PDAs to have static IPs. To connect, configure the network on one
PDA, then refresh to see the available network on the other, and when it
is visible tap it. Be sure to switch to the security page and switch WEP
off. For some reason when ad hoc networks are discovered Pocket PC 2003
thinks WEP is on when it isnt.
 
Back
Top