Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Multiplayer Webserver

Discussion in 'General Discussion' started by syndicategamedev, Jan 4, 2020.

  1. syndicategamedev

    syndicategamedev

    Joined:
    Dec 6, 2018
    Posts:
    5
    Hey Guys!

    I'm making a multiplayer game and don't want to use Unet for pricing reasons. I have a web server and want to run the multiplayer from there, is there anyway to do that?

    Cheers
     
  2. N1warhead

    N1warhead

    Joined:
    Mar 12, 2014
    Posts:
    3,692
    If it's actually a web server, then you want to learn WebSockets.

    EDIT: There's also 3rd party stuff. Such as NodeJS.Server... I haven't used it before so I can't say if it's worth looking into vs pure WebSockets.
     
  3. ShilohGames

    ShilohGames

    Joined:
    Mar 24, 2014
    Posts:
    2,835
    First of all, is it a server that you have root access to that also happens to run a web service? Or is it a website account on somebody else's web server? If it is just an account on somebody else's server, then you probably will not be allowed to run custom services and listen on specific ports.
     
  4. Aiursrage2k

    Aiursrage2k

    Joined:
    Nov 1, 2009
    Posts:
    4,834
    I used node sockets before very briefly, you can get a server on digital ocean for $5 a month, and scale up as needed, or use amazon.

    The good thing about rolling your own is you will have way more control, it will be cheaper, probably better over the long haul, and the bad thing is you will have way more control
     
    Last edited: Jan 4, 2020
  5. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    8,996
    You shouldn't want to use Unet because it was deprecated in 2018, not because of its pricing, considering Unet is free.
     
  6. LukeDawn

    LukeDawn

    Joined:
    Nov 10, 2016
    Posts:
    361
    Try other options like Enet, Mirror, or SmartFox
     
    Aiursrage2k and Joe-Censored like this.
unityunity