in reply to Re^4: Activeperl 5.16.1 Ipv6 support
in thread Activeperl 5.16.1 Ipv6 support

There is IO::Socket::IP, which claims to be family neutral and largely compatible to IO::Socket. Maybe it installs on your version of Perl.

There also is the Socket module, which is similar-but-not-identical to IO::Socket, maybe you can write wrappers for the functions that are missing.

Replies are listed 'Best First'.
Re^6: Activeperl 5.16.1 Ipv6 support
by Mayank09 (Initiate) on Jan 19, 2016 at 11:40 UTC
    Hi I am also facing the same problem in Active State Perl version 5.16.3

    Can someone please help in resolving the issue.

    @rama133101 : did you get any solution for the problem ? Thanks

      Consider the modules suggested as solutions.

        Hi I am using the Latest Modules as below :
        >perl -MIO::Socket::IP -e "print$IO::Socket::IP::VERSION" 0.37 >perl -MSocket -e "print$Socket::VERSION" 2.021
        Output :: perl -MIO::Socket::IP -E "my $sock = IO::Socket::IP->new(PeerHost => q +q(2620:0:1aa0:8070:1:88:200:e78f), PeerPort => 80, Timeout => 10 ) o +r die $@; say $sock->peerhost" nodename nor servname provided, or not known at -e line 1.
        The code works fine with using the INET6 Module but not with IO::Socket::IP.
        perl -MIO::Socket::INET6 -E "my $sock = IO::Socket::INET6->new(PeerHos +t => qq(2620:0:1aa0:8070:1:88:200:e78f), PeerPort => 80, Timeout => +10 ) or die $@; say $sock->peerhost" 2620:0:1aa0:8070:1:88:200:e78f

        I came across one Bug ( https://rt.cpan.org/Public/Bug/Display.html?id=79110 ) and found this to be similar to the problem I am facing. I also got the same following error upon trying the code as suggested in that bug ::

        - Cannot create socket - ai_family not supported I also tried
        cpan > force install Socket
        As per the reporter, it worked fine for Strawberry Perl, But is not working for me as I am using Activestate Perl. Can anyone please suggest a solution for this problem. Any help is really appreciated. Thanks