threema-ch / threema-web

The Threema Web application.
GNU Affero General Public License v3.0
992 stars 106 forks source link

Android: Direct connection not possible when connected via smartphone's hotspot #488

Open lgrahl opened 6 years ago

lgrahl commented 6 years ago

Expected Behavior

When the smartphone is being used as a hotspot (Bluetooth or WiFi) and the notebook is connected to the internet via that hotspot, a direct connection should be established (well, at least if the browser uses WebRTC mode <= 2).

Current Behavior

The connection is established via a relay (smartphone)/prflx (notebook) candidate pair.

Possible Solution

Looking at about:webrtc reveals that no UDP host candidates are being gathered (only TCP active) for the hotspot interface. I don't know why that is the case at the moment... It may be a limitation of the interface or a limitation/bug of/in Google's WebRTC library.

Steps to Reproduce (for bugs)

  1. Start a hotspot (Bluetooth or WiFi) on your smartphone.
  2. Connect to the hotspot with your notebook.
  3. Open Threema Web on the notebook.
  4. Check the selected candidate pair in about:webrtc.

Your Environment

rugk commented 6 years ago

Threema for Android source: Pirate Bay (obviously)

I guess this issue happens, because the coinminer included in the cracked version does drain your battery. Try to use an official version. :stuck_out_tongue_winking_eye: