Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Multiplayer in WebGL without a dedicated server... Is it possible?

Discussion in 'Multiplayer' started by HeadSoft_Software, Apr 27, 2021.

  1. HeadSoft_Software

    HeadSoft_Software

    Joined:
    Jun 12, 2020
    Posts:
    1
    My goal is to write a small multiplayer game (maybe 4 players or so connected at once) that can all run in a web browser, without the need for any kind of dedicated server, and if possible, without having to expect the players to mess with router settings and port forwarding. Is this possible in Unity?
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Web browsers put significant limits on networking, one of those is the browser can't act as a server/host. I'm not sure how you get a network game working without some server/host to accept client connections. This isn't a Unity limitation. Talk to the developers of Chromium, Firefox, etc.