check if host is alive

  • Thread starter Thread starter logik3x
  • Start date Start date
L

logik3x

I'm making a program to auto-login people to border manager proxy... to
do so I have to check if they can access the inernet... I though the
best way was to check if an host (ex. google) outside the network was
alive... to do so I thought I could ping it but I'm shure there is
something way simpler... and there is probably a way without using an
exterior host.. anyways any suggestions are wlecomed .. I'm jus doing
this for fun anyways but uh clean code is always fun


thx in advance
 
Typically, you would ping the machine you are trying to reach.

You can call the InternetCheckConnection function through the P/Invoke
layer to do this.

Hope this helps.
 
Back
Top