InetAddress.getIsLinkLocal

bool getIsLinkLocal()

Tests whether address is a link-local address (that is, if it identifies a host on a local network that is not connected to the Internet).

Returns

true if address is a link-local address.