_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! Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Rocu Posted February 25, 2010 Share Posted February 25, 2010 Yes, it will. Quote Link to comment Share on other sites More sharing options...
_tina_ Posted February 25, 2010 Author Share Posted February 25, 2010 Great, thanks for the help Quote Link to comment 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.