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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Is it possible to use Unity's high level multiplayer components without using multiplayer service?

Discussion in 'Multiplayer' started by darkhog, Sep 8, 2015.

  1. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    I'm confused about it.
     
  2. Dudledok

    Dudledok

    Joined:
    Oct 24, 2013
    Posts:
    110
    I can't give a full answer, but I was using Unet to set up a p2p game without using the multiplayer service, but then you need to sort your own matchmaking (I was just doing it by entering the other person's ip for the time being).
     
  3. Leoo

    Leoo

    Joined:
    May 13, 2013
    Posts:
    96
    Yes, you can use it.
     
  4. HugoZandel

    HugoZandel

    Joined:
    Mar 11, 2014
    Posts:
    52
    You can use the networking stuff HLAPI or LLAPI. However, you will not be able to use the matchmaker and relay service.

    If you want p2p, you will need to code NAT punch through or tell your users how to open a port on their routers. Unity told somewhere that they are considering implementing NAT punch through. However, this would be against their business model with all the new services.

    If you want dedicated servers, you will need to host them yourself or distribute the server binaries.

    In all situations, you will need to code your own matchmaker using sockets or maybe a web REST api.