Firewall ports in a master/slave

Wich firewall ports needs to be opened in the windows firewall for a master/slave scenario to work?
Windows 10 is complaining a lot if the firewall is turned off, so better to do it porperly. :sweden: