Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

IPAddr#multicast?

multicast?

Returns true if the ipaddr is a multicast address. IPv4 addresses in 224.0.0.0/4 and IPv6 multicast addresses in ff00::/8 are considered multicast. Multicast IPv4 addresses in the IPv4-mapped IPv6 address range are also considered multicast.