# Client ip address fetching

**URL:** <https://forum.keycloak.org/t/client-ip-address-fetching/14012>\
**Category:** Getting advice\
**Tags:** authentication, oidc\
**Created:** [March 3, 2022, 6:06pm UTC](https://forum.keycloak.org/t/client-ip-address-fetching/14012 "2022-03-03T18:06:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxp](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@maxp](https://forum.keycloak.org/u/maxp)\
**Post date:** [March 3, 2022, 6:06pm UTC](https://forum.keycloak.org/t/client-ip-address-fetching/14012/1 "2022-03-03T18:06:37Z")

</div>

HI all,

has somebody of you already managed to identify from keycloak the original client IP address?

In local I’ve configured my standalone.xml keycloak (11) like this by adding, according to documentation:

proxy-address-forwarding=“true”

But I can’t grab an ip address from http request!

Best  
Max

---

<div class="post-metadata">

**Author:** ![maxp](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@maxp](https://forum.keycloak.org/u/maxp)\
**Post date:** [March 3, 2022, 6:40pm UTC](https://forum.keycloak.org/t/client-ip-address-fetching/14012/2 "2022-03-03T18:40:52Z")

</div>

perhaps I found!

it could be something like

session.getContext().getConnection().getRemoteAddr()

Best  
Massimo
