While this may seem simple, i have tried the usual request.getRemoteAddr(), request.getRemoteHost() but i keep getting my servers address. Something about my configuration, im getting my gateway ip. Does anyone know how to get the acutal users IP address?
thanks
If there’s some proxy between you and the user, then you might have to look at the
X-Forwarded-Forheader. Note that this isn’t guaranteed to work either, but if you only need “good enough”, then it might suffice.