- Home /
Nat Punchthrough using Unity.Networking without use of Matchmaking Server?? is it possible? Also what if we host our own server at home always on?
Hi all, my friend and I have made a couple of games in Unity. We have been using the Unity HLAPI Network Manager and Network Manager HUD. The games connect fine to the Matchmaking Server of UNET but we don't really think that is an option we will be using due to the costs involved.
The games we made also connect fine using the IP and port set-up that came pretty much built into the Network Manager asset.
a) So the first game we want to add the multiplayer to, is a 2 player drag racing game. As I say, if the user puts in the other users external IP address and that person has correctly forwarded port 7777 then we can connect via internet and play eachother. But of course on release of the game, we want the code automatically discover the external IP, and to forward the port 7777 so that the user can just click "Host" to open up a game as a 'Client-Host-Server' scenario (I hope that makes sense, i believe that if he is Host then he appears as 'Server' to the basic unity code, please correct me if im wrong :])
I've been reading and investigating for a long time about NAT Punchthrough. I don't claim to exactly know what it does or how, but Im fairly sure this is what I need in order to get that 2 player set up without the typing of the IP and ports by the user.
b) Another option we considered (which is probably going to be the way we do it for our other game, which is more like Fortnite BR (kind of hahaha!). We will have a server always turned on, that is connected to our internet static IP and DMZ/ports forwarded, We have had this working with 2 clients and also a phone client logged in at same time.
My question is:: I saw this asset and considered buying: https://www.assetstore.unity3d.com/en/#!/content/58948 - But the description talks about the use of the Matchmaking server. Does this asset help at all, if not using Matchmaking Unity server?? And also, can anyone point me to any straight-forward help on how to achieve anything towards either a) or b) above?
Many thanks for reading
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
RPC and Command Calls OR Network messages for syncing variables across Server and Client? 0 Answers
Light.color Sync ? 1 Answer
UNet - Connecting and Testing a 'choose your character' scenario 0 Answers
Multiplayer Object spawned by client does not show up on host 1 Answer