- Home /
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
Same issue here, I have tried using the external ip address to connect to the LAN computer (port forwarded) and still no luck!
Answer by talham7391 · Jul 13, 2015 at 01:35 PM
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...
I didn't add my answer to this post, but after further research into the problem, for me it was incorrect Unity versions. One computer was building/running on an old build of Unity 5 while the other was hosting on a current build. However, like you said, I only noticed it when I was using cross operating system tests! Good luck!