What port is used to connect to LDAP?

When I define the host on the AD connection, do I need to define the port number? How do I know what port number to use?

This article describes the ports that are used by AD:
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd772723(v=ws.10)?redirectedfrom=MSDN

Typically LDAP uses port 389 and LDAPS uses port 636