corda / net.corda.node.utilities / AddressUtils / isPublic

isPublic

fun isPublic(address: InetAddress): Boolean

Returns true if the provided address is a public IP address or hostname.

fun isPublic(hostText: String): Boolean