Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

A Networking Question

Discussion in 'Scripting' started by FirePlantGames, May 7, 2014.

  1. FirePlantGames

    FirePlantGames

    Joined:
    Dec 11, 2012
    Posts:
    49
    okay, I know this is pretty broad, but can you guys list some pros and cons of using nat punchthrough? I am new to networking and am not quite sure why you would disable NAT and would just like to know if there is any downside to it
     
  2. MakeCodeNow

    MakeCodeNow

    Joined:
    Feb 14, 2014
    Posts:
    1,246
    NAT traversal is pretty much required for any modern internet game. Without it, players often won't be able to connect with one another because they are behind different firewalls.
     
  3. appels

    appels

    Joined:
    Jun 25, 2010
    Posts:
    2,687
    Yes, but that's not what he's asking...
    He is asking about the pros and cons for the other end, the server end where you need punchthrough to connect the server.

    1 con: Nat punchthrough doesn't allways work, some modems don't support it.
    And if that's the case, there is no way to connect to it.
     
  4. mael5trom

    mael5trom

    Joined:
    Feb 27, 2014
    Posts:
    16
    Its not so much about whether to nat or not to nat.. Its all about flexibility. You should be able to support all variances or nat, non-nat, proxies, etc. Putting in place the necessary checks from the perspective of each device to ascertain which method of communications will work best for your deployment is important and then registering that configuration to something like XMPP for tracking, messages, presence and most importantly on the internal side.. what each devices current method of connectivity, so you can handle any necessary back end modifications to ensure successful delivery or your game data.
     
  5. FirePlantGames

    FirePlantGames

    Joined:
    Dec 11, 2012
    Posts:
    49
    Thanks for the help peoples!