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

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -