JimDuyer has asked for the wisdom of the Perl Monks concerning the following question:

Is the $ENV{'REMOTE_ADDR'} that is being populated with the IP of the user, still going to populate when a IPv6 is used ? As in : my $ip = $ENV{'REMOTE_ADDR'}; would show for example, 2001:738:2001:2010:0:ff:fe00:3. or the IP4 of 72.14.204.105 depending on how the user hit the script, correct ? No changes ? (Other than I need to rewrite the regex in my code that compares a valid ip with 4 groups with dots)

This is on an apache server. Where do I read the Rentucky Fried Chicken RFC ?

Replies are listed 'Best First'.
Re: Easy One, about IPv6
by stevieb (Canon) on Jun 28, 2012 at 00:02 UTC

    What does your *experience* tell you? If you don't have any experience with this, mine states that yes, it will be populated correctly :)

      Thanks for your reply. I don't have much *Experience*, so that's why I asked the question here. In my defense, I also did not state that I had much experience. I have written a handful of scripts that have been working on my sites for over 5 years without breaking, but I am still very much a beginner in Perl. After Perlbotics was kind enough to furnish the RFC number, I looked it up.

Re: Easy One, about IPv6
by Anonymous Monk on Jun 27, 2012 at 20:20 UTC

    Is the $ENV{'REMOTE_ADDR'} that is being populated with the IP of the user, still going to populate when a IPv6 is used ?

    What does the RFC say?