Doyley Posted May 15, 2007 Share Posted May 15, 2007 Hi all, Is it possible to use PHP to find out peoples IPV6 address similar to $_SERVER['REMOTE_ADDR']; Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/51501-ipv6/ Share on other sites More sharing options...
taith Posted May 15, 2007 Share Posted May 15, 2007 as of yet... i doubt it... not many computers are ipv6 compatable... vista, debian, mac... even then, it has to be supported by the isp... so i doubt it... but try print_r($_SERVER); see if its being forwarded via headers already... Quote Link to comment https://forums.phpfreaks.com/topic/51501-ipv6/#findComment-253658 Share on other sites More sharing options...
phast1 Posted May 15, 2007 Share Posted May 15, 2007 Hello, I believe that the $_SERVER['REMOTE_ADDR'] variable will contain an IPv6 address if your host system is using IPv6 at the operating system level.. Here is a link to an IPv6 detection class, which may be useful for keeping your code compatible with IPv6: http://www.weberdev.com/get_example-3921.html Hope that helps! Shawn Quote Link to comment https://forums.phpfreaks.com/topic/51501-ipv6/#findComment-253659 Share on other sites More sharing options...
Doyley Posted May 16, 2007 Author Share Posted May 16, 2007 Thanks for your replies. It was just out of curiosity really, I'm not using it anywhere yet but it's interesting to keep up with it. Quote Link to comment https://forums.phpfreaks.com/topic/51501-ipv6/#findComment-254550 Share on other sites More sharing options...
taith Posted May 16, 2007 Share Posted May 16, 2007 LOL i cant wait! ipv6 is sick! 8.4 octillion ip addresses... we can then go connect near every nut and bolt onto the internet, the world over... LOL... there'll be no need of DHCP servers then... lol Quote Link to comment https://forums.phpfreaks.com/topic/51501-ipv6/#findComment-254562 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.