Suparn Gupta wrote:Yeah I have checked the java.net package. When I enumerate the network interfaces using getNetworkInferfaces() it doesnt show the nic whose cable is unplugged. Even if I use netsh tool and extract the ip addresses from the output of the command, it wont do my job. I must get a NetworkInterface object for every interface as I have to use it in further code.
Take your time :-)
I believe the java.net package only reports the NICs which are visible via the OS ... meaning if you run "ipconfig" (windows) or "ifconfig" (unix), it should show up. If it doesn't, there is nothing that can be done at the
Java layer, it's a operating system or networking issue (you need to talk to your system or network administrator).
Henry