You behind a proxy?
May 6, 2024
4
Level 2
Take customer ip address
Hello everyone. I am using Laravel 10 and Digital Ocean App Platform. I want to take user ip address. After that send ipinfo with api and take customer location and country. I am using $request->ip() however it always return me my server location. How can I fix this problem. I was try $_SERVER['REMOTE_ADDR'], $_SERVER['HTTP_X_FORWARDED_FOR'], $_SERVER['HTTP_X_REAL_IP']
Level 122
Please or to participate in this conversation.