_tina_ Posted February 25, 2010 Share Posted February 25, 2010 $_SERVER["REMOTE_ADDR"] ; Does anybody know why the above is returning "::1" rather than the ip address? Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/193379-emote_addr-help/ Share on other sites More sharing options...
Rocu Posted February 25, 2010 Share Posted February 25, 2010 "::1" is the same as localhost 127.0.0.1 in IPv6 Link to comment https://forums.phpfreaks.com/topic/193379-emote_addr-help/#findComment-1018136 Share on other sites More sharing options...
_tina_ Posted February 25, 2010 Author Share Posted February 25, 2010 Oh, okay, thank you for that. So when I upload this to a live server it will output the users ip? Thanks again. Link to comment https://forums.phpfreaks.com/topic/193379-emote_addr-help/#findComment-1018139 Share on other sites More sharing options...
Rocu Posted February 25, 2010 Share Posted February 25, 2010 Yes, it will. Link to comment https://forums.phpfreaks.com/topic/193379-emote_addr-help/#findComment-1018140 Share on other sites More sharing options...
_tina_ Posted February 25, 2010 Author Share Posted February 25, 2010 Great, thanks for the help Link to comment https://forums.phpfreaks.com/topic/193379-emote_addr-help/#findComment-1018142 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.