Received control channel close before open when connect to dedicated server

Hi guys,

We’re working on our not big multiplayer project, but if we need to package, it spend at least 10 minutes, and for our situation, test with PIE, is not so convenient.

So we want to use the editor plus command line to run the dedicated server(we don’t need listen server) and client, then we can get rid of waste time to wait package at developing moment.

We create two bat files to do it and we’re using Unreal Engine 4.2.1.

  • run_dedicated_server.bat:

    \UE4Editor.exe %~dp0\MyTPS.uproject Example_Map?game=/Game/Blueprints/MyGame.MyGame_C -server -log

  • run_client.bat:

    \UE4Editor.exe %~dp0\MyTPS.uproject 192.168.1.132 -game

It works well on one computer, but when multiple computers connect to the dedicated server with run_client.bat, we got this error :

LogNetTraffic:Error: UNetConnection::ReceivedPacket: Received control channel close before open

BTW, it works with a compiled(packaged) client.

Is there any way to fix that, thanks a lot!

Hi there,

Does this work at all when connecting from another client (like 1 server on a machine, and 1 client on another)?

Do you mind posting the server and client logs when this fails?

Thanks!

Hi John,

Thanks for reply!

When connecting from another client (like 1 server on a machine, and 1 client on another) , it just doesn’t work on UE 4.2.1.

I can post the log, but if you can reproduce it will more helpful :slight_smile: !

  • Use Unreal Engine 4.2.1 create new project based on Blueprint Third Person Template, I name it MyTPS.

  • Create bat files to launch dedicated server and client, put them under your project folder.
    run_server.bat

    UE4Editor.exe %~dp0MyTPS.uproject Example_Map?game=/Game/Blueprints/MyGame.MyGame_C -server -log

run_client.bat:

UE4Editor.exe %~dp0MyTPS.uproject 192.168.1.132 -game
  • Connect from another client, just can’t connect to the server.

Thanks again.

We are experiencing the exact same problem with UE4.5.1. Anyone have solved it?
For further informations about the issue here’s the Log:

link text

Thanks