How to get List of IP address inside the LAN connection ( Host name + Ip address) in Java? -
how list of ip address inside lan connection ( host name + ip address) in java ?
need example code.
enter following code in application.
process process = runtime.getruntime().execute("net view"); inputstream in=process.getinputstream();
read lines input stream , list of host names in current lan or wifi network.
Comments
Post a Comment