DEV Community

Discussion on: An easy way to get the (real) client IP in PHP

Collapse
rileyjones profile image
Riley Jones

I had the same problem. I used the "REMOTE_ADDR" method on my website and it was showing up my cloudflare ip address. I wanted to echo the users ip, so this answer helped me out a ton. I had to create an account just to applaud you. Great job!