Closed sigee closed 7 years ago
Hi @lewismc, It is because when you use it locally, your IP address is 127.0.0.1 (localhost). I mean $_SERVER['REMOTE_ADDR'] is not the IP address you are using on the internet. It is just a guess, but maybe it helps if you try to open your local server trough internet. See: https://whatismyipaddress.com/ and try to open your server on that ip address. If it is still wrong, you need to upload it to a remote server. I'm not sure why REMOTE_ADDR is wrong on localhost, but it is. I don't know any solution to fix this (maybe apache) issue.
Got it @sigee thank you
Thank you @sigee I will look at this tomorrow