View Full Version : IP's all being the same
Mitowolf65
01-08-2012, 04:04 AM
When anyone registers, all the IP's are the same. We have 14 people and on everyone they all have the same IP even though we are from different areas. Anyone have a clue?
Max Taxable
01-08-2012, 04:29 AM
When anyone registers, all the IP's are the same. We have 14 people and on everyone they all have the same IP even though we are from different areas. Anyone have a clue?Are you using CloudFlare or other CDN? What do the IP addresses resolve to?
Mitowolf65
01-08-2012, 01:17 PM
They resolve to the our hoster, cuz it says zeal.megaworldhosting.com when i click the IP
Max Taxable
01-08-2012, 02:09 PM
I don't know about vB4, but for 3.8.x I would say try this:
1. open includes/class_core.php after saving a clean copy of it to your desktop for easy revert.
2. Find: function fetch_ip() { return $_SERVER['REMOTE_ADDR']; }
replace with:
function fetch_ip() { if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { return $_SERVER['HTTP_CF_CONNECTING_IP']; } return $_SERVER['REMOTE_ADDR']; }
Find:
function fetch_alt_ip() { $alt_ip = $_SERVER['REMOTE_ADDR'];
if (isset($_SERVER['HTTP_CLIENT_IP'])) { $alt_ip = $_SERVER['HTTP_CLIENT_IP']; }
Replace with:
function fetch_alt_ip() { $alt_ip = $_SERVER['REMOTE_ADDR'];
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $alt_ip = $_SERVER['HTTP_CF_CONNECTING_IP']; } else if (isset($_SERVER['HTTP_CLIENT_IP'])) { $alt_ip = $_SERVER['HTTP_CLIENT_IP']; }
Save changes, then upload back to the /includes folder.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.