Warning: wrong connectionId in received user packet

Hello,

I am running into weird random issue with Unet client-server during handshake communication.

Sequence:

  1. server is ready and running
  2. client is starting and connecting to server
    3a. (very positive scenario) connection is setup immediately
    3b. server is throwing “Warning: wrong connectionId in received user packet”
    3b1. (positive scenario) after some of these warnings the connection is setup and everything is ok
    3b2. (negative scenario) connection is not setup

Unity version: 5.2.1f1
Client: Windows 7
Server: Ubuntu 14.04.3 LTS

Can somebody explain me what is this warning about? It looks like whole internet never hear it before :slight_smile:

bump

Hi,
Did you ever find a solution to this problem?

Thanks,
Sean

Hi,
partially yes. Our enterprise monitoring tool was pinging opened UDP connections before the connection handshake was established between unity server and clients. It was sending “bad” packets, so the server threw warnings and then malfunctioned. The quick solution for us was to turn off our tool but it must be also fixed directly in the Unity because it is security hole. Right now, I am not sure if it has been already fixed (in 5.4).