Code example for NetworkInterface

Methods: isUp

0
     *         {@link NetworkInterface#isUp() up} 
     */ 
    @Override 
    protected InetAddress isAcceptable(NetworkInterface networkInterface, InetAddress address) throws SocketException {
 
        if( networkInterface.isUp() )
            return address;
        return null; 
    } 
 
    private Object readResolve() throws ObjectStreamException {
        return INSTANCE;
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE