corda / net.corda.node.utilities / AddressUtils / tryDetectPublicIP

tryDetectPublicIP

fun tryDetectPublicIP(): InetAddress?

Returns the first public IP address found on any of the network interfaces, or null if none found.