UDPSocket does not work with IPv6?

Hi, I’ve a IPv6 address in my host.

UDPSocket.open do |s|
s.connect “2001:838:2:1::30:67”, 1

=> Errno::EAFNOSUPPORT: Address family not supported by protocol -
from (irb):25:in `connect’

How to use UDPSocket with an IPv6?

Thanks a lot.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs