Dear programmers, I would like to find all the Host that are connected to my machine. How to do this. I also want to know the status of all the connection. for example I name my m/c as A, which is conected to 5 m/c thro network say B,C,D,E,F. I would like to check the status of the connection periodically, whether connected or disconnected, How to do this. thanking you, L.Sivaraman.
posted 13 years ago
u mean , on all the ports. Well all the ports should be scanned. 0 to 65535, but another is Process p = Runtime.getRuntime().exec("netstat -all"); on a Win Platform...