Hi Mithun Sharma1
I suggest you check if the ports are already in use by running the following command in PowerShell:
Get-NetTCPConnection -LocalPort 389
If the command returns any results, it means that the port is already in use.
If the ports are not in use, make sure that you are creating the rules for the correct network profile (public, private, or domain).
If you are still unable to open the ports, you may need to check if there are any other firewalls or security software installed on the server that may be blocking the ports.
Best Regards,
Hania Lian