I am using a login form where i want to get user/client ip address or user machine name. Now there are multiple solution provided on multiple platforms including stackoverflow and i have tried almost everything. i have tried **HTTP_X_FORWARDED_FOR ** , **REMOTE_ADDR ** etc, but they return me server or public ip and not ip of the client. these things works good on local machine but when deploy on production environment these return the server/public ip and not client ip.
How can i get client's ip address??