resolveAddress

Returns the raw IP address bytes of this socket address.

The returned array is 4-bytes for IPv4 addresses and 16-bytes for IPv6 addresses. Returns null if the address cannot be resolved or is not a valid IP address.

Always returns null for Kotlin/JS and Kotlin/Wasm targets.

Report a problem