LAN NetworkTransport communication issue

Hey,

I’m trying to use the 5.1 Unity NetworkTransport API to communicate with other lan computer, but when i call the NetworkTransport.Connect, i’m getting an error message (180x) saying…

“message->m_Block->allocatedLength == sizeof(PingPacket)”

…and then i receive a disconnect event.

If i set a wrong ip or port, i don’t get any message or error, and also tried to ping the remote computer and works, probably not a lan issue.

Since i can’t find any documentation or resource about that message, any suggestion about what is the problem?

My code is very similar to this unity tutorial but adapted to 5.1 version

I had the same problem. I was running the server on a Windows desktop and trying to connect to it using my Apple laptop and when I tried to connect I would get that error on my Apple laptop.

The problem went away when I used a Windows laptop to connect to my Windows desktop instead of an Apple laptop. I think Unity doesn’t support connection between 2 different operating systems.

Hope this helps…