# What ports do client agents listen on?

**URL:** <https://discuss.hashicorp.com/t/what-ports-do-client-agents-listen-on/11035>\
**Category:** Nomad\
**Created:** [July 5, 2020, 5:10am UTC](https://discuss.hashicorp.com/t/what-ports-do-client-agents-listen-on/11035 "2020-07-05T05:10:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![0xbkt](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/0xbkt/32/3374_2.png) [@0xbkt](https://discuss.hashicorp.com/u/0xbkt)\
**Post date:** [July 5, 2020, 5:10am UTC](https://discuss.hashicorp.com/t/what-ports-do-client-agents-listen-on/11035/1 "2020-07-05T05:10:29Z")

</div>

Coming from [https://www.nomadproject.io/docs/install/production/requirements#ports-used](https://www.nomadproject.io/docs/install/production/requirements#ports-used), I see 2 ports are required for client agents but it doesn’t explicitly say if it’s ingress or egress. I first guessed clients wouldn’t need ports to listen on, and instead they would establish a long-lived connection to the server for all communication. Why would clients even need an open port instead of talking via an open connection with the server in a reverse tunnel-ish style?

---

<div class="post-metadata">

**Author:** ![a-bangk](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/a-bangk/32/43067_2.png) [@a-bangk](https://discuss.hashicorp.com/u/a-bangk)\
**Post date:** [October 9, 2024, 1:45pm UTC](https://discuss.hashicorp.com/t/what-ports-do-client-agents-listen-on/11035/2 "2024-10-09T13:45:58Z")

</div>

Did you get answer to this?  
From the nomad server logs it looks the agent egress port is random, and the server ingress port is 4647.
