Support » Fixing WordPress » Comment IP address is always same

  • Hello, I moved my wordpress to another server and now all the comments are coming from same IP address,

    This is a special purpose IP adress but no Idea why this is happening. I am hosted with Mosso which has firewalls installed. Please let me know a solution.

Viewing 5 replies - 1 through 5 (of 5 total)
  • This is Roland from Mosso and I can help with this issue. The problem comes from the code not knowing that it is now on a Clustered hosting solution. To fix the ip issue do a search in your all of your wordpress files for this snippet of code:


    Replace it with this code:


    This code swap will allow the wordpress script to obtain the correct IP address of your commentors.

    Come into live chat for help if you run into any snags along the line.

    Roland B.
    Account Manager


    Could you please point/me us to a page that lists all the Mosso quirks that WordPress people should know about. I am about to bring quite a few WP sites over to a Mosso account and I need to know all these things AHEAD of time!

    Alister Cameron
    Blog Consultant

    I’ve written a plugin that should fix this problem.

    You can download it here:

    Let me know if it works for you.


    P.S That is the first plugin I’ve written 🙂

    it worked for me now =D
    thanks for the plugin. I didn’t realize my comments were having the same IP, damn Mosso =P

    alicam – the biggest thing is the ip address. Another thing to remember is that with wp-cache you can’t use symbolic links – I wrote how to get around that here:

    Thats the biggest quirk I have found while hosting blogs on mosso.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Comment IP address is always same’ is closed to new replies.