C#游戏服务器:已建立的连接被中止

C#游戏服务器:已建立的连接被中止,c#,C#,我已经阅读了与我的错误相同的所有其他问题,它们不适用于我的情况。 你好。最近,我的游戏服务器出现了一个非常奇怪的错误: 14:44:18 - Error sending message to socket: An established connection was aborted by the software in your host machine 14:44:18 - System.Net.Sockets.SocketException (0x80004005): An esta

我已经阅读了与我的错误相同的所有其他问题,它们不适用于我的情况。

你好。最近,我的游戏服务器出现了一个非常奇怪的错误:

  14:44:18 - Error sending message to socket: An established connection was aborted by the software in your host machine
  14:44:18 - System.Net.Sockets.SocketException (0x80004005): An established connection was aborted by the software in your host machine
   at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
   at Hariak_Emulator.Emulator.Base.Game.Habbo.Players.Players.GameClient.SendData(Byte[] data) in C:\Users\User\Desktop\EmuDev17\Hariak Emulator\Hariak Emulator\Emulator\Base\Game\Habbo\Players\Players\PlayerConnection.cs:line 264 System.Net.Sockets.SocketException (0x80004005): An established connection was aborted by the software in your host machine
   at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
   at Hariak_Emulator.Emulator.Base.Game.Habbo.Players.Players.GameClient.SendData(Byte[] data) in C:\Users\User\Desktop\EmuDev17\Hariak Emulator\Hariak Emulator\Emulator\Base\Game\Habbo\Players\Players\PlayerConnection.cs:line 264
为什么会这样,有人能帮忙吗? 下面是它发生的代码(第264行PlayerConnection):


此服务器的端口号是多少?我的端口号是30000(30000格式)。请检查您的防火墙是否阻止此端口:如果我错了,请更正我,但如果我在127.0.0.1(localhost)上运行它,它不应该阻止它。另一篇文章建议防火墙超时:
internal void SendData(byte[] data)
{
    try
    {
        _socket.BeginSend(data, 0, data.Length, 0, OnSend, null);
    }
    catch (SocketException socketException)
    {
        Logger.Error("Error sending message to socket: " + socketException.Message);
        Logger.Error(socketException);

        Dispose();
    }
}