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

In reply to Re^8: Activeperl 5.16.1 Ipv6 support by Mayank09
in thread Activeperl 5.16.1 Ipv6 support by rama133101

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.