Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi and Mobile data | Not Connection #15

Open
bilalbaz1 opened this issue May 24, 2024 · 4 comments
Open

Wifi and Mobile data | Not Connection #15

bilalbaz1 opened this issue May 24, 2024 · 4 comments

Comments

@bilalbaz1
Copy link

bilalbaz1 commented May 24, 2024

I'm running it across different internet connections. I set up a TURN server. It does not work on some internet connections. It usually doesn't work between wifi and mobile data. Has anyone encountered this problem? I've been searching for days but I couldn't find a solution.

(Not device related. My internet connection speed is not slow.)

IMG_ok
IMG_no

@harithm918
Copy link

yes. I'm also facing this issue. any solution?

@bilalbaz1
Copy link
Author

bilalbaz1 commented May 29, 2024

yes. I'm also facing this issue. any solution?

No. I couldn't find any solution. I also tried it on packages like peerdart [https://pub.dev/packages/peerdart]. The same problem occurs in many cases. It works on some internet connections. It doesn't work on some.

D/FlutterWebRTCPlugin(19001): onConnectionChangeCONNECTING
D/FlutterWebRTCPlugin(19001): onConnectionChangeFAILED

@justbendev
Copy link

You need to do some reading on how WebRTC works. Its actually really interesting.
In your specific case you couldn't do NAT Hole Punching
Basically create a port forwarding by exploiting firewall state tables

This demo is using Google Public STUN Servers to help with that as defined in the iceServers list.
If it fails you need a 3rd party server running a TURN to relay packets between your clients.
Basically a last resort backup when direct P2P fails

In this demo its located at lib/screens/call_screen.dart line:62

@guruatdigni
Copy link

any one fixed this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants