2

My magento install showing the server's IP in sales_flat_order/remote_ip. I want to show the client's IP.

I already tried this but not worked.

What to do?

  • Can you check that $_SERVER['REMOTE_ADDR'] hasn't been added with a value in index.php? I've seen this before when a value has been set for debugging an issue and had been left in which affected the remote ip value. – wr125 Sep 14 '18 at 11:27
  • No there isn't any variables like that – Feralheart Sep 14 '18 at 11:28
  • are you behind cloudflare or the sort? if so, you'll need to configure nginx / apache appropriately. – Ricky Odin Matthews Sep 17 '18 at 9:56
0

Please try in your index.php file

echo $_SERVER['HTTP_X_ORIG_REAL_IP'];

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.