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

Consider the modules suggested as solutions.

Replies are listed 'Best First'.
Re^8: Activeperl 5.16.1 Ipv6 support
by Mayank09 (Initiate) on Jan 27, 2016 at 05:54 UTC
    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