Hi,
when i try to get the IP of the users i get 162.158.130.85
all users got the same IP? how to fix this?
162.158.130.85 is the connecting IP of your client. However, since you’re using Cloudflare (apparently, they own that IP), Cloudflare is the connecting client and the actual visitor connects to Cloudflare.
If you are using a reverse proxy like Cloudflare, you need to check he docs of the relevant service provider to learn if and how they forward the correct IP. From memory, they usually use the X-Forwarded-For
header for this.
@Admin said:
162.158.130.85 is the connecting IP of your client. However, since you’re using Cloudflare (apparently, they own that IP), Cloudflare is the connecting client and the actual visitor connects to Cloudflare.If you are using a reverse proxy like Cloudflare, you need to check he docs of the relevant service provider to learn if and how they forward the correct IP. From memory, they usually use the
X-Forwarded-For
header for this.
The IP of my website using CloudFlare: 104.27.136.235, 104.27.137.235
And no, i don’t use any reserve expect CloudFlare and it should show the real visitor IP address…
I have another domain on other hosting and using Cloudflare and it shows the real IP
Well, it’s fixed now.
When i turn off cloudflare i get the original IPs of the visitors and when i turn it on i get “162.158.130.85”
Any solution?
@Avenger said:
@Admin said:
162.158.130.85 is the connecting IP of your client. However, since you’re using Cloudflare (apparently, they own that IP), Cloudflare is the connecting client and the actual visitor connects to Cloudflare.If you are using a reverse proxy like Cloudflare, you need to check he docs of the relevant service provider to learn if and how they forward the correct IP. From memory, they usually use the
X-Forwarded-For
header for this.The IP of my website using CloudFlare: 104.27.136.235, 104.27.137.235
That’s the IP visitors use to connect to Cloudflare. Cloudlfare uses different IPs to connect to your website.
And no, i don’t use any reserve expect CloudFlare and it should show the real visitor IP address…
I have another domain on other hosting and using Cloudflare and it shows the real IP
That’s not how Cloudflare works. Cloudflare is a reverse proxy. Visitors connect to Cloudflare and Cloudflare connects to your website. Cloudflare’s IP is the real IP. But you can get the visitor IP from a different HTTP header.