Sorry I know this is a really old post but in case this helps someone else, this is the best solution that I have found to exclude the ports yet. (takes the guess work out of which ports you need to exclude) https://helpomatic.com/quickbooks-2020-quickbooksdb30-service-database-manager-wont-start/
- Run QB Database manager, click the “Port Monitor” tab (for newer versions)
- Take note of the port it wants.
- Stop the QB Service and the DNS Server service
- Open an admin command prompt and use this to exclude it:
- netsh int ipv4 add excludedportrange protocol=udp startport=xxxxx numberofports=5
- replace xxxxx with the port number listed in the DB manager
- Start the DNS Server service
- Start the QuickBooksDBxx Service
You should now have both services running and since the DNS Server service started first it shows that it should not be an issue every boot.