deskreen icon indicating copy to clipboard operation
deskreen copied to clipboard

Ubuntu 21.04 gnome Wifi hotspot not recognised: "No WiFi or LAN connection."

Open RobRobM opened this issue 3 years ago • 7 comments

When running a WiFi hotspot in Ubuntu deskreen does not see the network. Waiting for connection.

Steps to Reproduce

  1. Create a wifi hotspot from ubuntu

  2. Connect device to hotspot

  3. open deskreen on ubuntu

  4. waiting for connection

Context

I am going to work in a no wifi zone where I want to show my screen via a tablet. Phones are not allowed so I want to use the hotspot from my laptop to connect my chromebook.

Your Environment

  • Deskreen version or branch : v1.0.11
  • Operating System and version : Ubuntu 21.04

RobRobM avatar Jun 22 '21 12:06 RobRobM

Just guessing, that If you are in a no-WiFi zone you are not allowed to use WiFi at all, not even hotspot on your laptop. So, you should figure out how to set up networking over an USB cable (adb has many features).

gw0 avatar Oct 04 '21 08:10 gw0

with android tablet:

enable developer options by pressing the build number in system information a several times.

enable usb debugging in developer options

install the android debug bridge (adb) as described here: https://www.xda-developers.com/install-adb-windows-macos-linux/

connect to the pc with usb

allow usb debugging from this pc on the tablet (click ok)

check if the device is connected to pc adb device

direct 127.0.0.1:3131 from phone to pc adb reverse tcp:3131 tcp:3131

use deskreen as usual, except that you enter 127.0.0.1 in the tabs browser instead of the wifi ip.

leuchtrakete666 avatar Oct 24 '21 06:10 leuchtrakete666

@leuchtrakete666 Are you sure this works? Which browser on Android are you using? I initially attempted exactly that, but I could not get the WebRTC connection to work. It would load the Deskreen page on port 3131, I allowed access and selected an app, but then on the screen viewing page I just got a black screen. I suspected that this was because WebRTC attempts to use random ports and there is no way to explicitly configure port forwarding to make video streaming work.

gw0 avatar Oct 25 '21 13:10 gw0

i use chrome beta. cause on actual chrome i get anouing flickerings. for me it works really good like this.

leuchtrakete666 avatar Oct 26 '21 18:10 leuchtrakete666

@leuchtrakete666 Are you sure this works? Which browser on Android are you using? I initially attempted exactly that, but I could not get the WebRTC connection to work. It would load the Deskreen page on port 3131, I allowed access and selected an app, but then on the screen viewing page I just got a black screen. I suspected that this was because WebRTC attempts to use random ports and there is no way to explicitly configure port forwarding to make video streaming work.

I'm having the issue just seeing a black screen. Any ideas how to solve this? I'm using an Amazon fire tablet with debugger mode and connecting on 127.0.0.1

abe-101 avatar Nov 01 '21 16:11 abe-101

@leuchtrakete666 Are you sure this works? Which browser on Android are you using? I initially attempted exactly that, but I could not get the WebRTC connection to work. It would load the Deskreen page on port 3131, I allowed access and selected an app, but then on the screen viewing page I just got a black screen. I suspected that this was because WebRTC attempts to use random ports and there is no way to explicitly configure port forwarding to make video streaming work.

I'm having the issue just seeing a black screen. Any ideas how to solve this? I'm using an Amazon fire tablet with debugger mode and connecting on 127.0.0.1

Because no variant of port-forwarding worked for me (black screen), I exposed the whole network interface to the VM. Specifically, I exposed a Bluetooth module to the VM, connected over BLE, enabled Bluetooth tethering on the tablet, and set up networking and firewalls accordingly. Unfortunately, it is not as stable as I would like, because the Android BLE implementation is buggy and every ~1 hour it decides that the BLE connection is idle and drops it. In addition, any change to charging/discharging status of the tablet also drops the BLE connection. An alternative would be to do something similar with USB tethering.

gw0 avatar Nov 02 '21 11:11 gw0

@leuchtrakete666 Are you sure this works? Which browser on Android are you using? I initially attempted exactly that, but I could not get the WebRTC connection to work. It would load the Deskreen page on port 3131, I allowed access and selected an app, but then on the screen viewing page I just got a black screen. I suspected that this was because WebRTC attempts to use random ports and there is no way to explicitly configure port forwarding to make video streaming work.

I am having the same webRTC connection issue

lijunhaoabroad avatar Sep 13 '22 07:09 lijunhaoabroad