Java ARP Scanner -


i need write java program, gets computer network interfaces , scans ip addresses , mac addresses within subnet.

i'm not sure how that, found there's method called:

arping.scan(devicename, network, mask, timeout); 

is i'm looking for? return? there aren't lot of comments, , i'm new this, can't figure out myself. please help!

public void checkhosts(string subnet){     int timeout=1000;     (int i=1;i<254;i++){         string host=subnet + "." + i;         if (inetaddress.getbyname(host).isreachable(timeout)){             system.out.println(host + " reachable");         }     }  }


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -