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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -