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

Ice connection failed react native #1590

Closed
TriPSs opened this issue Mar 8, 2019 · 5 comments
Closed

Ice connection failed react native #1590

TriPSs opened this issue Mar 8, 2019 · 5 comments
Labels

Comments

@TriPSs
Copy link

@TriPSs TriPSs commented Mar 8, 2019

What version of WebTorrent?
^0.103.0

What operating system and Node.js version?

What browser and version? (if using WebTorrent in the browser)

What did you expect to happen?
simple-peer to connect

What actually happened?
simple-peer throwing error Ice connection failed

simple-peer [50766ba] iceStateChange (connection: failed) (gathering: gathering)
simple-peer [50766ba] destroy (error: Ice connection failed.)
webtorrent:peer destroy 2d5744303032302d756b692b6a4c7a7671464155 (error: Ice connection failed.)

Does anyone now how i can tackle this issue?

@TriPSs TriPSs changed the title React native with react native webrtc Ice connection failed react native Mar 8, 2019
@stale

This comment has been minimized.

Copy link

@stale stale bot commented Jun 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jun 6, 2019
@stale stale bot closed this Jun 13, 2019
@TriPSs

This comment has been minimized.

Copy link
Author

@TriPSs TriPSs commented Jun 13, 2019

This is still a issue.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Aug 6, 2019

This error message just means that you could not connect to a specific peer. This is normal. It's not guaranteed that any two arbitrary peers in the network will be able to connect to each other. For example, two peers behind symmetric NATs will not be able to connect to each other.

@TriPSs

This comment has been minimized.

Copy link
Author

@TriPSs TriPSs commented Aug 7, 2019

@feross all the peers don't work while if i use webtorrent in a node instead of react native env it works as expected.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Aug 11, 2019

My guess is that it's something to do with the react-native webrtc package that you're using. I think that it uses an outdated version of WebRTC. I think we can move the discussion of this to the simple-peer repo: feross/simple-peer#445

In the meantime, you can just disable WebRTC peers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.