Hello,
I searched on MSDN,
Check if the port is conflicting, and if so, change the port number. Checked,the port is right. and firewall is disbled on both server.
Check the database mirroring endpoint configuration for the instances of the primary and secondary replica and update the mismatched configuration.Checked ,the configuraion should be right.
But my replica still can not connect to alwayon.
What other should I check?