Add IP catching based on x-forwarded-for
Fix reference
Fix variable name
Add request to get IP infos server side