Jump to content

WHMCS shows the server IP instead of Admin or Client IP !


musti19

Recommended Posts

Hello,

This sounds like an issue with the PHP or the Webserver. WHMCS uses PHP's REMOTE_ADDR function to display the connecting IP: http://php.net/manual/en/reserved.variables.server.php

 

You may want to contact your Hosting Provider for assistance regarding PHP/WebServer configurations.

 

Note: From my experience, Nginx & Varnish running as a proxy against Apache have been known to cause this.

Link to comment
Share on other sites

You're right. Im using Nginx&Varnish, is there a solution for this?

 

thank you

 

Hello,

Nginx & Varnish are the actual cause of the problem. It would affect any PHP script using REMOTE_ADDR, so it's not something that WHMCS itself can resolve. I recommend contacting Nginx or Varnish support or looking on their forums for that answer.

Link to comment
Share on other sites

ok, i checked my system.

SERVER["REMOTE_ADDR"] is set correctly (Client/Visitor IP)

i checked via phpinfo and test.php

<?php

print ('Your IP is "'.$_SERVER['REMOTE_ADDR'].'". ');

?>

 

I think, WHMCS uses a another variable?

 

PS.: In wordpress are the ips correctly logged.

Edited by musti19
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated