1

What is the fastest/quickest way to check if an ip address is alive or not?

EDIT It is in a local LAN. It would be used to check for example if the ip is assigned to a network printer. And this would also have to be able to be down from code, preferably c#.

user3660338
  • 296
  • 5
  • 23
  • 1
    There is no sure way to do this. You could ping, but it might be blocked. – Bart Friederichs Dec 22 '15 at 16:26
  • If the target IP address is still under your control, you can create certain protocol of handshaking between the source and the target. – yogipriyo Dec 22 '15 at 16:33
  • I have a solution with IcmpSendEcho(), but it's really slow if the host is not reachable. Btw I also need a faster approach in C++! – leon22 Feb 23 '16 at 14:38
  • Also look here: http://stackoverflow.com/questions/35580675/fastest-way-to-ping-local-network-addresses – leon22 Feb 23 '16 at 15:24

0 Answers0