# (Edited) How to change TCP port on PX4

**URL:** <https://discuss.px4.io/t/edited-how-to-change-tcp-port-on-px4/34627>\
**Category:** PX4 Autopilot\
**Created:** [October 4, 2023, 4:32am UTC](https://discuss.px4.io/t/edited-how-to-change-tcp-port-on-px4/34627 "2023-10-04T04:32:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shy020501](https://discuss.px4.io/letter_avatar_proxy/v4/letter/s/bcef8e/32.png) [@shy020501](https://discuss.px4.io/u/shy020501)\
**Post date:** [October 4, 2023, 4:32am UTC](https://discuss.px4.io/t/edited-how-to-change-tcp-port-on-px4/34627/1 "2023-10-04T04:32:45Z")

</div>

Sorry, I’m wrote my situation wrongly and edited the post. I’m currently trying to use PX4 on multiple simulators and I’m using AirSim simulator. I can change TCP port of AirSim simulator but cannot change TCP port of PX4. Because of this, I can only connect to one simulator. How can I fix this problem?

---

<div class="post-metadata">

**Author:** ![danielhonies](https://discuss.px4.io/user_avatar/discuss.px4.io/danielhonies/32/6982_2.png) [@danielhonies](https://discuss.px4.io/u/danielhonies)\
**Post date:** [October 4, 2023, 5:22am UTC](https://discuss.px4.io/t/edited-how-to-change-tcp-port-on-px4/34627/2 "2023-10-04T05:22:57Z")

</div>

Which simulator are you on? for gazebo-classic, try one of these files: [https://github.com/search?q=repo%3APX4%2FPX4-SITL\_gazebo-classic%204560&type=code](https://github.com/search?q=repo%3APX4%2FPX4-SITL_gazebo-classic%204560&type=code)
