netbird icon indicating copy to clipboard operation
netbird copied to clipboard

ios app can't connect when use mobile network

Open NatureLR opened this issue 1 year ago • 9 comments

Describe the problem

ios app can't connect when use mobile network

截屏 2024-01-10 16 11 15 Snipaste_2024-01-10_16-10-02

NatureLR avatar Jan 10 '24 08:01 NatureLR

I had the same problem on my iphone, fuck iphone.

oldwang12 avatar Jan 10 '24 08:01 oldwang12

Hi @NatureLR and @oldwang12, this is some limitation we already identified. We will be working on solving this soon.

surik avatar Jan 10 '24 10:01 surik

Also, as I see this is self-hosted. Can you confirm that your relay service is configured properly?

To test your TURN configuration by accessing the link https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/. There you will find an ICE servers input box, where you can select and remove the existing server, then add your turn server configuration as follows:

Please replace netbird.DOMAIN.com and PASSWORD with the information from the management.json TURNConfig, then click on Add server.

Run the candidate gathering by clicking on Gather Candidates.

surik avatar Jan 10 '24 11:01 surik

Also, as I see this is self-hosted. Can you confirm that your relay service is configured properly?

To test your TURN configuration by accessing the link https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/. There you will find an ICE servers input box, where you can select and remove the existing server, then add your turn server configuration as follows:

Please replace netbird.DOMAIN.com and PASSWORD with the information from the management.json TURNConfig, then click on Add server.

Run the candidate gathering by clicking on Gather Candidates.

yes,i use getting-started-with-zitadel.sh deploy my server

Snipaste_2024-01-11_10-42-55

NatureLR avatar Jan 11 '24 02:01 NatureLR

I believe I had the same issue. After some support from the team on slack, I was able to resolve it.

You need to add the public ip of your server in the turn configuration file as follow:

externalip=193.224.22.37

As seen in your screenshot, your turn server currently advertise an internal ip:

Screenshot 2024-01-11 at 14 45 27

Ben7on avatar Jan 11 '24 13:01 Ben7on

I believe I had the same issue. After some support from the team on slack, I was able to resolve it.

You need to add the public ip of your server in the turn configuration file as follow:

externalip=193.224.22.37

As seen in your screenshot, your turn server currently advertise an internal ip:

Screenshot 2024-01-11 at 14 45 27

oh Successful !!! 😄

i add external-ip=<eip> to turnserver.conf and use

docker compose up -d --force-recreate coturn

NatureLR avatar Jan 12 '24 02:01 NatureLR

I believe I had the same issue. After some support from the team on slack, I was able to resolve it. You need to add the public ip of your server in the turn configuration file as follow: externalip=193.224.22.37 As seen in your screenshot, your turn server currently advertise an internal ip: Screenshot 2024-01-11 at 14 45 27

oh Successful !!! 😄

i add external-ip=<eip> to turnserver.conf and use

docker compose up -d --force-recreate coturn

It works for me too!!!

jiangslee avatar Jan 15 '24 09:01 jiangslee

unfortunately this solution only works with fixed ip addresses and not with dynamic IPs

collse avatar Aug 16 '24 13:08 collse

Unfortunately this doesn't work for me. I double checked the TURN configuration and the test indicated the correct IP-Address. This behavior only appears on cellular connection. I can exclude the DNS and Network-Route functionality because turning them off will not resolve the issue.

Now the interesting part: If I connect my Mac with mobile hotspot to the iPhone, the Mac can connect to the peers without any problem. So I guess the problem is in the iOS app itself.

SvenSapphire avatar Aug 23 '24 16:08 SvenSapphire

Hello @NatureLR,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

nazarewk avatar Apr 28 '25 15:04 nazarewk

closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.

mlsmaycon avatar Jun 01 '25 21:06 mlsmaycon