Hey, icyapril thanks for answering.
I’ve actually updated the plugin code with something like that, but instead I have used the HTTP_X_FORWARDED_FOR for solving this issue. It worked!
I know, isn’t the best practice to modify the plugin but, in this case, was essential.