Search Unity

How do make a multiplayer game to play with friends?

Discussion in 'Multiplayer' started by EdlundVidar, Feb 4, 2023.

?

How do make a multiplayer game to play with friends?

  1. Use dedicated servers

    5 vote(s)
    71.4%
  2. Use Multiplayer with "example"

    2 vote(s)
    28.6%
Multiple votes are allowed.
  1. EdlundVidar

    EdlundVidar

    Joined:
    May 11, 2022
    Posts:
    1
    Explain > Multiplayer, networking, dedicated servers? free, free not?

    So I recently started with multiplayer, not knowing anything with 1+ years experience in Unity and 2+ in programming with C#.
    So the network solutions I found were Fishnet, Mirror, Riptide and DarkRift 2. But from my understanding, you can not play with your friends across miles with only Unity and one of these "networking-things" You need something like "Playfab" so you need Unity > Mirror > Playfab to create a multiplayer experience as Sea Of Thieves
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,998
    You forgot Netcode for GameObjects, Unity‘s own solution. ;)
    And no, your assessment is incorrect. With any of these you can connect with friends on the same server (port forwarding may be required on host‘s router).
    Maybe just try one of the NGO or Fish-Net example projects and ask a friend to join. Most likely service you need is a relay server so users can join without the host having to setup port forwarding.
     
  3. ep1s0de

    ep1s0de

    Joined:
    Dec 24, 2015
    Posts:
    168
    These are only those solutions that are made specifically for unity, there are many other network solutions that are presented many times better.

    RakNet
    SlikeNet (same Raknet but improved and maintained so far)
    ENet (I recommend it!)
    LiteNetLib
    LidgrenNet
    SteamSockets
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,998
  5. qbvbsite

    qbvbsite

    Joined:
    Feb 19, 2013
    Posts:
    83