Java InetAddress Check isAddressReachable(InetAddress address)

Here you can find the source of isAddressReachable(InetAddress address)

Description

is Address Reachable

License

Apache License

Declaration

private static boolean isAddressReachable(InetAddress address) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.IOException;

import java.net.InetAddress;

public class Main {
    private static boolean isAddressReachable(InetAddress address) {
        try {/* w w  w  .ja  v  a  2 s .  co m*/
            return address.isReachable(200);
        } catch (IOException e) {
            return false;
        }
    }
}

Related

  1. checkIPMatch(String ipTemplateList, InetAddress addr)
  2. createRandomSocketAddressList( InetAddress bindAddress, int preferredPort, int minPort, int maxPort)
  3. formatAddresses( List addresses)
  4. getInetAddressList(NetworkInterface netInterface)
  5. is6to4(InetAddress addr)
  6. isAny(InetAddress ip)
  7. isBroadcastAddress(InetAddress address)
  8. IsBusy(final InetAddress remote, int port)
  9. isClassicAddress(InetAddress address)