Hello Unity developers!
For the last few days I’ve been trying to learn Networking…
I started with the Leepo’s Zero to Hero tutorial,but I have a problem.
I used his Chat script in a Test Project.
I started server on my computer,and connected as a client on my laptop–and everything worked fine.I could chat from my laptop to my PC/
But,after I sent my test project to a friend,and I started server,he couldn’t connect.
Connect as client did not work for him.He kept pressing connect as client,but nothing happened.
Thanks in advance for help,
-Robert-
Thats because he’s either not putting in your IP address or port correctly, or your router is blocking the ports from being accessible from outside your LAN.
In order to accomplish what you want, you have to use Unity’s Master Server NAT Facilitator to establish the connection.
There’s been a lot of confusion around how to accomplish it, and that’s because there’s a small bug in the included version of the Networking libs when dealing with the Facilitator.
http://forum.unity3d.com/threads/77614-Unity-3.2-amp-Nat-Punchthrough-bug-(using-the-Master-Server)
My post in that thread explains the procedure.