InetAddress.getIsLoopback

bool getIsLoopback()

Tests whether address is the loopback address for its family.

Returns

true if address is the loopback address for its family.