What ports does HomeKit use?

I’ve got HomeKit running and can access it perfectly with my iPhone with the firewall disabled. Now I would prefer to not run it that way long term, is there a full listing of ports used by HomeKit that I need to open? I tried with just the default value from the documentation (51827 or something) and that didn’t work.