hostOf

fun hostOf(address: String): String

The host of address, host:port or [ipv6]:port, without the brackets of an IPv6 literal.