AviNahum Posted September 19, 2009 Share Posted September 19, 2009 i trying to get the user IP address with this code: $return['IP_ADDRESS'] = $_SERVER['REMOTE_ADDR']; echo $return['IP_ADDRESS']; but all i get is: ::1 i can't see any problems here. Thanks! Link to comment https://forums.phpfreaks.com/topic/174796-cant-get-user-ip-address/ Share on other sites More sharing options...
work_it_work Posted September 19, 2009 Share Posted September 19, 2009 works fine for me, i use it before and worked ... Link to comment https://forums.phpfreaks.com/topic/174796-cant-get-user-ip-address/#findComment-921187 Share on other sites More sharing options...
jandrews3 Posted September 19, 2009 Share Posted September 19, 2009 Your query of the server address is straight on. It's identical to what I use. Try to "print $_SERVER['REMOTE_ADDR'];" and see what you get. If you get the same thing, something is wrong with the way your server is querying ip addresses. Link to comment https://forums.phpfreaks.com/topic/174796-cant-get-user-ip-address/#findComment-921188 Share on other sites More sharing options...
work_it_work Posted September 19, 2009 Share Posted September 19, 2009 you may go here hunting-cozia.ro/rr/k/ it's for u it works there i guess your problem is with the server not with the php Link to comment https://forums.phpfreaks.com/topic/174796-cant-get-user-ip-address/#findComment-921194 Share on other sites More sharing options...
AviNahum Posted September 19, 2009 Author Share Posted September 19, 2009 ok, the problem on my server... thanks any way... Link to comment https://forums.phpfreaks.com/topic/174796-cant-get-user-ip-address/#findComment-921201 Share on other sites More sharing options...
Daniel0 Posted September 19, 2009 Share Posted September 19, 2009 http://en.wikipedia.org/wiki/IPv6 Link to comment https://forums.phpfreaks.com/topic/174796-cant-get-user-ip-address/#findComment-921202 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.