How to get List of IP address inside the LAN connection ( Host name + Ip address) in Java ?
need help for the example code.
How to get List of IP address inside the LAN connection ( Host name + Ip address) in Java ?
need help for the example code.
Enter the following code in your application.
Process process = Runtime.getRunTime().execute("net view");
InputStream in=process.getInputStream();
Read all the lines from this input stream and you will get the list of host names in current LAN or WiFi network.