# Receive client real IP in TCP mode

**URL:** <https://discourse.haproxy.org/t/receive-client-real-ip-in-tcp-mode/2269>\
**Category:** Help!\
**Created:** [March 19, 2018, 7:04pm UTC](https://discourse.haproxy.org/t/receive-client-real-ip-in-tcp-mode/2269 "2018-03-19T19:04:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prog019](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@prog019](https://discourse.haproxy.org/u/prog019)\
**Post date:** [March 19, 2018, 7:04pm UTC](https://discourse.haproxy.org/t/receive-client-real-ip-in-tcp-mode/2269/1 "2018-03-19T19:04:31Z")

</div>

Hello. Is there any way to receive client’s real IP in TCP mode without Proxy protocol?

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [March 19, 2018, 7:30pm UTC](https://discourse.haproxy.org/t/receive-client-real-ip-in-tcp-mode/2269/2 "2018-03-19T19:30:20Z")

</div>

That depends on many factors. There is a transparent mode you can use, but haproxy needs to be your default-gateway and “see” all the traffic. It’s pretty complex to setup.

You can read more about it here (just ignore the first part where he’s installing a 1.5-dev build - just make sure you run a supported haproxy release):

> **[Setting up HAProxy with Transparent Mode on Centos 6.x](https://www.loadbalancer.org/blog/setting-up-haproxy-with-transparent-mode-on-centos-6-x/)**
>
> Transparent mode with HAProxy allows you to see the IP Address of the clients computer while still having a high availability service using HAProxy. This posting shows how to setup a blank virgin installation of Centos 6.3 64bit minimum...

---

<div class="post-metadata">

**Author:** ![prog019](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@prog019](https://discourse.haproxy.org/u/prog019)\
**Post date:** [March 22, 2018, 1:18am UTC](https://discourse.haproxy.org/t/receive-client-real-ip-in-tcp-mode/2269/3 "2018-03-22T01:18:24Z")

</div>

thank you for your reply
