QuickBooks can use different ports depending upon its version. However, the format of these ports can be similar. The firewall ports for QuickBooks 2016 will be " 8019, 56726, 55368-55372". For QuickBooks 2017, you can use "8019, 56727, 55373-55377" as the ports. If you are using QuickBooks 2018, then the ports "8019, 56728, 55378-55382" should be preferred.