# Providing agent ip to the proxy

**URL:** <https://discuss.elastic.co/t/providing-agent-ip-to-the-proxy/373896>\
**Category:** Elastic Agent\
**Created:** [January 30, 2025, 2:14pm UTC](https://discuss.elastic.co/t/providing-agent-ip-to-the-proxy/373896 "2025-01-30T14:14:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atnestors](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@atnestors](https://discuss.elastic.co/u/atnestors)\
**Post date:** [January 30, 2025, 2:14pm UTC](https://discuss.elastic.co/t/providing-agent-ip-to-the-proxy/373896/1 "2025-01-30T14:14:30Z")

</div>

Hello,  
I have a reverse proxy running Flask that needs to check and log the ip of an agent before allowing the connection. Is there a way to make Elastic send the target agent ip along with the CONNECT request? I've seen that I can make Elastic send certain headers to the proxy. Can I maybe reference the agent ip there somehow?
