InetAddress.getIsLoopback

Tests whether address is the loopback address for its family.

class InetAddress
bool
getIsLoopback
()

Return Value

Type: bool

true if address is the loopback address for its family.