Usually it is sufficient to have the range of ports from 5000 to 5100 open.