# UDP ports between PX4 and QGC

**URL:** <https://discuss.px4.io/t/udp-ports-between-px4-and-qgc/22940>\
**Category:** MAVLink\
**Created:** [June 21, 2021, 4:34pm UTC](https://discuss.px4.io/t/udp-ports-between-px4-and-qgc/22940 "2021-06-21T16:34:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stalone](https://discuss.px4.io/user_avatar/discuss.px4.io/stalone/32/8079_2.png) [@stalone](https://discuss.px4.io/u/stalone)\
**Post date:** [June 21, 2021, 4:34pm UTC](https://discuss.px4.io/t/udp-ports-between-px4-and-qgc/22940/1 "2021-06-21T16:34:19Z")

</div>

I am trying do understand the socket level communication between PX4 and QgroundControl.  
First question: Why does the PX4 bind a local port to the socket before broadcasting its heartbeat to 14550?  
Second question: How does QGC catch the adress port from PX4 to answer? Because if we use bind function at PX4, QGC is obvious the client and we can’t bind a socket to a specific port to listen for connections.
