corda / net.corda.node.services.messaging / ArtemisMessagingComponent / toHostAndPort

# toHostAndPort

`@JvmStatic fun toHostAndPort(target: MessageRecipients): HostAndPort`

Assuming the passed in target address is actually an ArtemisAddress will extract the host and port of the node. This should only be used in unit tests and the internals of the messaging services to keep addressing opaque for the future. N.B. Marked as JvmStatic to allow use in the inherited classes.