DimitrisTzimikas / RCTWebRTCDemo2

config: iOS/Android, react-native: 0.59.4, react-native-webrtc: 1.67.1 working example with server
38 stars 18 forks source link

iceConnectionState failed over Android Hotspot #6

Open ultimatee opened 4 years ago

ultimatee commented 4 years ago

I used this demo, but for signalling server I wrote a function that creates the server on the first phone, which has Android Hotspot (AP) enabled. The other phone is connected to this AP. The app on the phones connect to this server and exchange the Offer, Answer and ICE candidates, but then the iceConnectionState goes from checking to failed and the streams don't get exchanged.

If I connect both phones to the same local network (no Android Hotspot), the same exchange takes place and the streams get exchanged successfully.

How is the wifi network different from Android AP network and how can I find out what the reason for iceConnectionState failed is?

DimitrisTzimikas commented 4 years ago

@ultimatee Maybe you should try other iceServer. Try this one http://numb.viagenie.ca/

ultimatee commented 4 years ago

Actually I am not using any iceServer and it works over normal Wi-Fi, but not Android Hotspot. In the browser realm there is chrome://webrtc-internals/, is there a way to debug webrtc signalling in React Native?

ultimatee commented 4 years ago

Also, my aim is to not use data connection at all, just Android Hotspot (avoiding the roaming expenses). The app will only be used at close range.

DimitrisTzimikas commented 4 years ago

@ultimatee Have you find any solutions?

ultimatee commented 4 years ago
@DimitrisTzimikas No, it doesn't seem to connect when one party has
the Android Hotspot enabled.

Dimitris Tzimikas je 27/02/2020 ob
  12:02 napisal:

  @ultimatee
    Have you find any solutions?
  —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub, or unsubscribe.
  [

{ "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/DimitrisTzimikas/RCTWebRTCDemo2/issues/6?email_source=notifications\u0026email_token=AADBB4KCO6SRA7AXYJVO7SDRE6MUVA5CNFSM4I56HKC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEND5XFQ#issuecomment-591911830", "url": "https://github.com/DimitrisTzimikas/RCTWebRTCDemo2/issues/6?email_source=notifications\u0026email_token=AADBB4KCO6SRA7AXYJVO7SDRE6MUVA5CNFSM4I56HKC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEND5XFQ#issuecomment-591911830", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]