# No connection to QGC on Ubuntu 20.04

**URL:** https://discuss.bluerobotics.com/t/no-connection-to-qgc-on-ubuntu-20-04/11670
**Category:** QGroundControl
**Created:** [March 4, 2022, 9:50am UTC](https://discuss.bluerobotics.com/t/no-connection-to-qgc-on-ubuntu-20-04/11670 "2022-03-04T09:50:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![monsterbacke](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/monsterbacke/32/8425_2.png) [@monsterbacke](https://discuss.bluerobotics.com/u/monsterbacke)
#### Post date: [March 4, 2022, 9:50am UTC](https://discuss.bluerobotics.com/t/no-connection-to-qgc-on-ubuntu-20-04/11670/1 "2022-03-04T09:50:27Z")

</div>

Hi everyone,

Does anybody have any suggestions for solving the following situation:

- laptop with Ubuntu 20.04 and QGroundControl 4.1.6
- Companion Software 0.30 and ArduSub 4.0.3
- network connection has been set up with IP 192.168.2.1 and netmask 255.255.255.0 (verified by `ip address show`)
- we can `ping` the pi on 192.168.2.2
- we can `ssh` into the pi and ping ourselves back on 192.168.2.1
- all services (video, mavproxy, etc.) are running according to the [system](http://192.168.2.2:2770/system) page and both the camera and the pixhawk are shown as detected devices
- using `screen -r` on the video and mavproxy processes is not showing any obvious errors
- mavproxy options are the default options
- all options in QGroundControl are as they came (auto-connecting to UDP, video port 5600)

But QGroundControl is not connecting. We don’t see a video and it says “disconnected” at the top. Did we miss a step somewhere?

We have successfully connected this ROV to another (Windows) laptop before but will need to use the Ubuntu laptop on this occasion.

Cheers!

Edit: Our IT team, who set up the laptop, set up a firewall without telling us. `sudo ufw disable` solved the problem. \*facepalm

---

<div class="post-metadata">

### Author: ![monsterbacke](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/monsterbacke/32/8425_2.png) [@monsterbacke](https://discuss.bluerobotics.com/u/monsterbacke)
#### Post date: [March 4, 2022, 10:25am UTC](https://discuss.bluerobotics.com/t/no-connection-to-qgc-on-ubuntu-20-04/11670/2 "2022-03-04T10:25:10Z")

</div>

So, after finding out about the firewall issue: which ports do I need to enable for QGroundControl? Is there a list somewhere?  
5600 for the video and 9000 for the control?

---

<div class="post-metadata">

### Author: ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)
#### Post date: [March 4, 2022, 2:56pm UTC](https://discuss.bluerobotics.com/t/no-connection-to-qgc-on-ubuntu-20-04/11670/3 "2022-03-04T14:56:28Z")

</div>

> [@monsterbacke](#):
>
> which ports do I need to enable for QGroundControl? Is there a list somewhere?

Check out the [Software Components docs](https://www.ardusub.com/developers/software-components.html) 🙂

QGC requires port 14550 for MAVLink (control), 5600 for video, 5601 for audio, and 14401 if you’re forwarding NMEA messages to it.

If you’re using a Ping Sonar or Ping360 you may also need to allow ports 9090 and 9092 respectively for Ping Viewer to connect correctly.
