iStriide Posted September 14, 2011 Share Posted September 14, 2011 I would get the ip address of the user that is on the site. I used $ip = $_SERVER['REMOTE_ADDR']; and it doesn't show my actual ip. Is it because im using an apache server on my computer. Quote Link to comment https://forums.phpfreaks.com/topic/247094-how-to-get-users-ip-address/ Share on other sites More sharing options...
trq Posted September 14, 2011 Share Posted September 14, 2011 $_SERVER['REMOTE_ADDR'] is the ip address your server sees. If your accessing a local server, this will likely be 127.0.0.1 or your LAN address. Quote Link to comment https://forums.phpfreaks.com/topic/247094-how-to-get-users-ip-address/#findComment-1269054 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.