Servers can open any port they like for clients.
Clients access the master server through port 30710, which then sends them the list of server IP:port combinations of which it is aware. The client sends these IPs a request for information through the port specified, and displays to the user those servers that responded in time.
That's my understanding of the matter, anyway.