Hey,
I hope you guys can help me.
So I am trying to set up a TCP Proxy on my hotel. It is all set up and working. I have kept the EMU config to the VPS IP and Port and changed client.php to the proxy IP and port. The client loads fine.
Here is the problem: When a player connects on the hotel, it shows their IP as the Proxy IP. This is obviously a problem for two reasons;
1) It means that my usual restriction of 5 connections per IP is not possible, due to the EMU logging each players IP as the proxy IP.
2) I am unable to IP ban anyone, as it bans the proxy IP.. meaning noone can log in.
I have edited 'maxconperip' in EMU config to 550. I have also edited the line in global.php
toCode:if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
Code:if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; }
I am scratching my head here trying to figure out where I am going wrong. I hope you fantastic people can help!
Thanks,
Steve


Reply With Quote

