opc ua客户端在连接服务器时失败,啥原因呢?

【测试环境】:2台PC机器,opcua服务器为KEPServer工具、客户端是我开发的C#程序。
【环境配置】:我已经在KEPServer中设置了OPC UA,并导入客户端证书。并且证书已经导入安装。
【问题现象】:我在用IP连接本机的服务器时弹出提示 BadCertificateUriInvalid。远程连接另外一台server时弹提示:bad received from remote host
【代码编写】:

 opcUaClient = new OpcUaClient();
opcUaClient.UserIdentity = new UserIdentity("admin", "123456");
opcUaClient.AppConfig.CertificateValidator.CertificateValidation += ( s, eventArgs ) => 
{
eventArgs.Accept = (eventArgs.Error.StatusCode == StatusCodes.BadCertificateUntrusted);
}
opcUaClient.AppConfig.SecurityConfiguration.ApplicationCertificate = new CertificateIdentifier(
new X509Certificate2(AppDomain.CurrentDomain.BaseDirectory + "lsydesk.pfx", "123456"));
await opcUaClient.ConnectServer("opc.tcp://10.11.148.31:49320");