Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WCF无法使用无线网络连接到笔记本电脑_C#_.net_Wcf_Sockets_Tcp - Fatal编程技术网

C# WCF无法使用无线网络连接到笔记本电脑

C# WCF无法使用无线网络连接到笔记本电脑,c#,.net,wcf,sockets,tcp,C#,.net,Wcf,Sockets,Tcp,我正在尝试在Windows 7x64和Studio 2012 Professional上使用WCF建立点对点连接。当笔记本电脑使用无线时,WPF停止工作 我的电脑通过以太网电缆连接到网络交换机,我的笔记本电脑通过有线网络连接到同一网络,WCF可以工作 但是, 当我的电脑通过以太网电缆连接到网络交换机,而我的笔记本电脑通过无线连接到同一网络时,WCF不工作 我更新了有线和无线之间的端口号 非常感谢您的帮助 错误如下: Error() { System.ServiceModel.Endpoi

我正在尝试在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命令时,我使用CatchException ex看到上述错误


谢谢

我已经修好了。我在某个地方读到,有人提到要打开808端口。所以我就这么做了,而且成功了!谢谢大家的帮助

WCF服务是否托管在IIS中?它表示目标计算机主动拒绝它,以便我检查服务器上的防火墙。甚至尝试禁用服务器和客户端上的防火墙,以确保没有人拒绝网络通信。WCF服务不是IIS中的主机。这只是tcp。我试图关闭服务器和客户端的防火墙。我甚至关掉了Avast。问题依然存在。知道下一步是什么吗?很奇怪……如果我在笔记本电脑上运行服务器,在我的电脑上运行客户端,那么我可以在笔记本电脑处于无线状态时建立WCP连接。我得到了一个修复程序。我在某个地方读到,有人提到要打开808端口。所以我就这么做了,而且成功了!谢谢大家的帮助!!