Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

strange problem using home wifi connection and mobile data

Discussion in 'Unity Render Streaming' started by salvatoreu, Jun 17, 2021.

  1. salvatoreu

    salvatoreu

    Joined:
    May 14, 2021
    Posts:
    7
    I would like to use Unity Render Streaming 3.01, and I find myself in this configuration:
    CASE1:
    - server pc : using Web Browser Input Sample connected to my home wifi
    - client: android app that connects to the server.
    - smartphone samsung S10 lite android 11

    test1: smartphone connected to home wifi--> everything works

    test2: smartphone connected to mobile data 4G --> not working

    CASE2:
    - server pc : using Web Browser Input Sample connected to my home wifi
    - client: android app connecting to the server.
    - smartphone XIAOMI MI NOTE 10 lite android 11

    test1: smartphone connected to home wifi--> everything works

    test2: smartphone connected to mobile data 4G --> everything works

    Helppppp meeeeee
     
  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    Hi, are there some errors when it is not working?
     
  3. salvatoreu

    salvatoreu

    Joined:
    May 14, 2021
    Posts:
    7
    Add new information:

    1- it seems that with Android 10 streaming works fine;
    2- on Android 11 this same streaming NOT working with same code

    Any Idea ?
     
  4. epicoro

    epicoro

    Joined:
    Jun 11, 2013
    Posts:
    9
    I have the same problem. When I am connected to the same wifi as Unity is running everything is working on my iPhone (iOS 14.6), but if I switch to mobile data, it stops working. I have tried running it first via mobile data and when I press play button there is no video and buttons are not working.. and if i switch to wifi it starts working immediately.

    I have deployed web app on Heroku platform and I have custom TURN server hosting on google VM. It is a bit odd because there are no errors and I can see the info logs in unity editor even when I am connected with mobile data but there is no video displaying.
     
  5. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    It is strange.
    Is the signaling process succeed?
    Is the bandwidth of the TURN consuming to stream the video?
     
  6. epicoro

    epicoro

    Joined:
    Jun 11, 2013
    Posts:
    9
    Thank you for pointing me in the right direction!

    I have resolved the problem! The problem was with my TURN server (closed ports). When I opened ports on google cloud, I have created a new tag for "targets" and I forgot to apply that tag to my VM.

    For everyone that has the same problem with no image displaying, it is probably your TURN server.
     
    kazuki_unity729 likes this.