Hi,
You don't need to configure the ports manually in edge transport server. Make sure that the ports are opened in your infrastructure (firewall or networking devices) Install the Edge role and go for a health check will do it.
Following is an example cmdlet, verifies the synchronization status of the single recipient kate@Company portal .com after your edge server installation is done successfully.
Test-EdgeSynchronization -VerifyRecipient kate@Company portal .com
Please refer: test-edgesynchronization