Quote Originally Posted by mmjanjust View Post hi all, how to get user's ipv6 address by php ? the same way as ipv4 using $_SERVER['REMOTE_ADDR']
if that variable contains ipv4 address it means that client doesnt have ipv6, your server has missconfigured ipv6, your webserver doesnt have ipv6 support, your domain doesnt have aaaa record or if your site got both ipv4 and ipv6 address and everything is configured properly then most likely clients primary routing is via ipv4 (which is unusual but also might happen - might be forced by client or clients isp).