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

Mobile port forwarding

Discussion in 'Multiplayer' started by vercus, Jul 18, 2022.

  1. vercus

    vercus

    Joined:
    Jun 10, 2021
    Posts:
    4
    Hi everyone. I want to make multiplayer mobile horror game but the thing that i dont know is port forwarding for mobile. I made once in steam because steam have support for this. So is there any system like steam on mobile ?
     
  2. r31o

    r31o

    Joined:
    Jul 29, 2021
    Posts:
    460
    (I think that) Steam doesnt have port forwarding, is a relay that lets player to play online without port forwarding or a dedicated server. Port forwarding is opening ports, so when someone over the internet wants to connect to a specific port and ip, the router doesnt block it.
    Port forwarding is not different on mobile, since you are doing the same. Just enter on your router (it should have some instructions about how to do it) and probably it will have some port forwarding tab, where you can specity which port(s) you want to open.

    Anyway, you are probably asking for a relay server, and for that, you can use Photon Realtime (or any photon product like PUN or bolt) or Epic Online Services.

    -Photon Realtime: Cross platform, but you only have 20 free ccu, you have to pay if you want more. With photon realtime you are working at a low level, if you want to make, for example, a network transform, you have to do it yourself. That being said, all the photon products are built on top of that, which means that you can use the relay while working at a higher level, and I think Netcode for gameobjects has a realtime transport.

    Epic Online Services (EOS): Cross platform. The documentation is a nightmare. Is completely free and it has more features then realtime. With that you also work at a low level, but Mirror has a EOS transport and (hopefully) Fish-Net will have one soon.

    I also think that Unity has some of that, but im not sure.
     
  3. vercus

    vercus

    Joined:
    Jun 10, 2021
    Posts:
    4
    yeah i think the thing that i want is relay. Im gonna check the EOS thank you a lot.