Linked Questions

Popular Questions

i have create a methord for get user ip address and i use this

this is my view

def get_ip(request):
    x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR')
    if x_forwarded_for:
        ip = x_forwarded_for.split(',')[0]
        ip = request.META.get('REMOTE_ADDR')
    return HttpResponse(ip) 

this is my side

it gives me my ip

but my real ip is


how i got this real ip please tell me

and if i use this link in diffrent device then it give same ip in diffrent device it givas ip in all device

Related Questions