@Mohd Arif Thank you for reaching out to us, Please find the below table for your reference ports between client/ADFS/WAP server and their purpose.
Reference: https://video2.skills-academy.com/en-us/entra/identity/hybrid/connect/reference-connect-ports (as shared above)
Let me know if you have any further questions, feel free to post back.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.