This is a paid asset, but now you can download NAT Traversal Free.
Detail this asset from Unity Store: Original Link
NAT Traversal v1.64 (Latest version)
NAT Traversal v1.54
“If possible, please buy the package to support the developer”
Adds NAT punch-through and automatic port forwarding to UNet.
Simple drop in setup for UNET. You only need three methods: StartHostAll(), ListMatches(), and StartClientAll() to connect. Your other UNET code remains unchanged.
Reduce your use of expensive relay servers by up to 95%, meaning you only spend money as little as 5% of the time! Use Unity’s own calculator to see just how much money you’ll save.
Minimize latency by connecting players directly whenever possible, even behind routers. Optionally falls back to Unity’s relay servers only if NAT traversal fails, so players can always connect.
Direct connect whenever possible
Why waste your hard earned money using bandwidth on the relay servers if you don’t have to? A direct connection means less lag and less dependence on infrastructure that you don’t control.
Seamless connection replacing
Your players will always use the best connection possible, seamlessly switching from relay to direct connections as they become available.
Gets your players in the game faster by not waiting for a UNET match to be created or joined before connecting.
Fully supports UNet’s built in Host Migration. No more dropped games, even if the host leaves.
Includes a lobby script that exactly emulates UNET’s NetworkLobby.
Example scenes are included that demonstrate using NAT Traversal with lobbies, host migration, and our Match Up plugin.
We have a consistent 5 star record of prompt and effective support. Contact us via email, forums, or Discord any time and we will work with you to resolve any issue.
Runs on Windows, OSX, and Linux.
Includes Playmaker support.
Note: We host a Facilitator that you are welcome to use free of charge. The Facilitator executable is also included so you can host it on your own server instead.
Note: Web and mobile builds are not supported.
This asset uses RakNet under BSD license and OpenNAT under MIT license; see Third-Party Notices.txt file in package for details.
Check Out Our Other Assets
Smooth Sync smooths Rigidbodies and Transforms over the network and further reduces bandwidth.
Match Up provides hassle free matchmaking support for ANY networking system.