That port is 8010.
Here is an image on what exactly to type in to allow this port from only your Chromecast, in GUFW (GUI for UFW):
Note: Replace 192.168.1.8 with the IP address of the Chromecast on your network that you want to cast to.
I hope you found this useful.