---
updatedAt: 2025-11-12T01:28:03.000Z
agentTools:
  projectIndex: https://manuals-ugcs.sphengineering.com/llms.txt
---

# Connection to PX4 simulator

PX4 VSM can be configured to connect to the PX4 simulator via UDP connection on port 14550. Add this line to\
vsm-px4.conf file:

```text
connection.udp_in.local_port = 14550
```

Please refer to [PX4 documentation](https://docs.px4.io/main/en/simulation/) on how to install and configure SITL (Software In The Loop) simulation.

**Warning!!!\
The PX4 simulator must be launched before PX4 VSM is launched. Otherwise, if VSM is already running it will\
terminate the VSM when launched. This applies only to the case when VSM is running on the same host as\
the simulation.**