MyBB Community Forums

Full Version: All users have the same IP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been having a problem, since I switched to a cloud hosting package, because the system is behind a Load Balancer. Therefore, whenever a user tries to register, it looks like they're coming from the same IP and the limit of multiple registrations from the same IP kicks in pretty quickly.

MyBB seems to think HTTPS_X_CLUSTER_CLIENT_IP is the client's IP, but in this case it's the load balancer. Instead, it should record HTTP_X_FORWARDED_FOR

Where in the code do I need to change this?
Update: I know I have to edit get_ip(), but I can't find it. Anyone know where it is?
Update: I finally found it in functions.php line 2798.