QuickBooks Firewall and Internet security settings for updates and network access:
For QuickBooks Pro 2012, the following ports need to be opened for incoming and outgoing network traffic: 80, 8019, 56722, and 55348-55352.
For more information about other editions and/or the indiviual executables that utilize the ports, see:
Source: http://support.quickbooks.intuit.com/support/articles/SLN41458