# When using docker, the client IP address is the docker parent IP address

**URL:** https://discuss.tryton.org/t/when-using-docker-the-client-ip-address-is-the-docker-parent-ip-address/4216
**Category:** System Administrator
**Created:** [May 17, 2021, 1:21pm UTC](https://discuss.tryton.org/t/when-using-docker-the-client-ip-address-is-the-docker-parent-ip-address/4216 "2021-05-17T13:21:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bala4901](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@bala4901](https://discuss.tryton.org/u/bala4901)
#### Post date: [May 17, 2021, 1:21pm UTC](https://discuss.tryton.org/t/when-using-docker-the-client-ip-address-is-the-docker-parent-ip-address/4216/1 "2021-05-17T13:21:11Z")

</div>

Hi,

If using docker to run trytond, the client IP address to show on the logs will be always the machine which host the docker.

Is there any way to get the original IP address from the client?

Best regards

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 17, 2021, 2:33pm UTC](https://discuss.tryton.org/t/when-using-docker-the-client-ip-address-is-the-docker-parent-ip-address/4216/2 "2021-05-17T14:33:43Z")

</div>

You must configure the [number of proxies](https://docs.tryton.org/projects/server/en/latest/topics/configuration.html#num-proxies). But your proxy must correctly set `X-Forwarded-` headers.

---

<div class="post-metadata">

### Author: ![bala4901](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@bala4901](https://discuss.tryton.org/u/bala4901)
#### Post date: [May 17, 2021, 3:27pm UTC](https://discuss.tryton.org/t/when-using-docker-the-client-ip-address-is-the-docker-parent-ip-address/4216/3 "2021-05-17T15:27:59Z")

</div>

Thanks..

May I know do you have any reference doc to set X-Forwarded proxy? using what tool to do this setting?

Best regards

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [May 17, 2021, 3:41pm UTC](https://discuss.tryton.org/t/when-using-docker-the-client-ip-address-is-the-docker-parent-ip-address/4216/4 "2021-05-17T15:41:04Z")

</div>

Their are described in [Forwarded header - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded)
