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

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -