WCF无法通过无线连接到笔记本电脑
本文关键字:笔记本 电脑 连接 WCF | 更新日期: 2023-09-27 18:04:53
我试图在Windows 7x64和Studio 2012 Professional上使用WCF建立点对点连接。当笔记本电脑使用无线时,WPF停止工作。
我的电脑通过以太网电缆连接到网络交换机,我的笔记本电脑通过有线连接到同一个网络,WCF工作。
,
当我的电脑通过以太网电缆连接到网络交换机,而我的笔记本电脑使用无线连接到同一网络时,WCF不工作。
我确实更新了有线和无线之间的端口号。
任何帮助的回答都是非常感谢的。
错误如下:
Error()
{
System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://100.100.1.90:9000/test_robot_client. The connection attempt lasted for a time span of 00:00:01.0430000. TCP error code 10061: No connection could be made because the target machine actively refused it 100.100.1.90:9000. ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 100.100.1.90:9000
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
}
当尝试发送WCF命令时,我使用Catch(Exception ex)看到上述错误。
谢谢!
我得到了一个修复。我在某处看到有人提到要打开808端口。所以我就这么做了,而且成功了!谢谢大家的帮助!!