简体   繁体   English

C#无法连接到我的异步TCP服务器

[英]C# Cannot connect to my Async TCP Server

I have an async TCP server I built that acts as an intermedium between a remote client application and the SQL server. 我有一个异步TCP服务器,该服务器充当远程客户端应用程序和SQL Server之间的中介。 Anyway, when I go to test a connection from a remote machine - it won't connect. 无论如何,当我要测试来自远程计算机的连接时,它将无法连接。 I am using Putty to test the connection to the TCP server and Putty immediately closes after I push connect. 我正在使用Putty来测试与TCP服务器的连接,并且在推动连接后,Putty立即关闭。 I set up Wireshark on both machines and I see some sort of communication come through on the port from the source IP but I don't know how to read it. 我在两台机器上都安装了Wireshark,我看到源IP的端口上进行了某种通信,但我不知道如何读取。 Both machines are Windows and I turned off the Windows Firewall. 两台计算机都是Windows,我关闭了Windows防火墙。 Can anyone help me diagnose my issue? 谁能帮助我诊断我的问题? Thanks. 谢谢。

Here's my Async Server code: PasteBin 这是我的异步服务器代码: PasteBin

Here's my Wireshark Capture (Server Side): PasteBin 这是我的Wireshark Capture(服务器端): PasteBin

Did you setup putty to use raw tcp connections as explained in the documentation of putty? 您是否按照腻子文档中的说明将腻子设置为使用原始tcp连接?

By default, putty creates secure shell (ssh) connections. 默认情况下,腻子创建安全外壳(ssh)连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM