Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

IPAddr#ipv4_mapped

() -> ::IPAddr
ipv4_mapped

Returns a new ipaddr built by converting the native IPv4 address into an IPv4-mapped IPv6 address.

See also #ipv4_mapped? #ipv4_compat? #ipv4_compat #ipv6? also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0