Support » Plugin: Jetpack by » Wrong ip & Shows my hosting ip with Cloudflare

  • Resolved smohannagaraj


    Cloudflare shows wrong ip. I get the same ip always that was my hosting ip.

    I have another statistics plugin. But it works correctly with correct ip.

    But cloudflare is my only problem.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Actually i am using a mu-plugin for wp statistics to get correct ip.
    if ( isset( $_SERVER[“HTTP_CF_CONNECTING_IP”] ) ) {

    Is there any similar way?

    I dont want to change the plugin system.

    But i want to fix only mine.

    Plugin Contributor Stef


    Hi there,

    Could you post your site URL here, so I can have a look?
    If you want it to remain private, you can also contact us via this contact form:
    Contact Support.


    Plugin Name: Correct IP – SSMRASU
    Description: Get correct visitor ip.
    Version: 1.1.0
    Author: SSMRASU
    Author URI:
    if ( isset( $_SERVER[“HTTP_CF_CONNECTING_IP”] ) ) {
    foreach ( array (
    ) as $header ) {
    if ( isset( $_SERVER[ $header ] ) ) {
    $_SERVER[ $header ] = $_SERVER[“HTTP_CF_CONNECTING_IP”];

    Create a mu-plugin.

    If anyone don’t know about it, search for google. It is very easy.

    Thank U!

    Plugin Support KokkieH


    Hi there,

    This does not sound like it is related to Jetpack. CloudFlare support might be in a better position to help you with this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wrong ip & Shows my hosting ip with Cloudflare’ is closed to new replies.