NetworkInterface.isAlive() and
NetworkInterface.close()