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.

Peer Multiplayer Gaming - NO Master Server - Help plz!

Discussion in 'Multiplayer' started by danilonsn, Apr 2, 2009.

  1. danilonsn

    danilonsn

    Joined:
    Aug 20, 2008
    Posts:
    11
    Hey gang...

    Not sure how to make it work...

    Objective:
    - No Masterserver or external server to handle/facilitate connections...
    - direct Peer conection (just player webbrowser build working as client and server)...
    - Reading player IP with PHP and use that info to create a connection, so no one would have to inform any freaky IP...

    But I´m not sure how - or if it is even possible - to handle NAT punchthrough inside my client game code... Sort of embedding the facilitator in the client...

    Ideas???

    Tks in advance guys...
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    No masterserver = 70%+ of all users can not play as only those can play who have setup portforwardings for the corresponding UDP port. This means that the majority of those playing browsergames ie casual users, will not be able to play at all.
    What you can do for example is using the masterserver invisibly which means without showing it to the player but using it for NAT Passthrough


    you can not handle NAT Punchthrough through the client, as the NATpunchthrough must be done by an "unshielded neutral 3rd point" that hands the ports etc between the parties so they no where to send the message and to which internet UDP port actually for the NAT to missassume that the connection actually is "ok"
     
  3. danilonsn

    danilonsn

    Joined:
    Aug 20, 2008
    Posts:
    11
    Wow... that was a fast one!

    Tks for your attention dreamora...

    I was kinda of afraid that answer would come... lol.
    Well... Now you´ve pointed me to the truth north... I got it...

    Two quickies now...

    1- Is Unity Masterserver free to use and access for a real production enviroment? I didn´t get that yet...

    2- If so, can I assume as safe the fact that ONLY people using my client code (the web game) can "see" the server instances created in this game by other people?

    Tks again!
     
  4. AngryAnt

    AngryAnt

    Keyboard Operator Moderator

    Joined:
    Oct 25, 2005
    Posts:
    3,045
  5. danilonsn

    danilonsn

    Joined:
    Aug 20, 2008
    Posts:
    11
    Well... Now I feel comfortable with it!

    Tks for the infos Ant!