Which ports do WebPagetest agent and server use to communicate

I have webpagetest agent running n my windows laptop and webpagetest server running on aws using ubuntu AMI.

although my agent is continuously showing “looking for work” “checking for work”
it is unable to connect with server.

just wanted to make sure which ports server and agent use to communicate