pavlobu / deskreen

Deskreen turns any device with a web browser into a secondary screen for your computer. ⭐️ Star to support our work!
https://deskreen.com
GNU Affero General Public License v3.0
16.79k stars 904 forks source link

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

Open RobRobM opened 3 years ago

RobRobM commented 3 years ago

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

gw0 commented 2 years ago

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).

leuchtrakete666 commented 2 years ago

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.

gw0 commented 2 years ago

@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.

leuchtrakete666 commented 2 years ago

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

abe-101 commented 2 years ago

@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

gw0 commented 2 years ago

@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.

lijunhaoabroad commented 2 years ago

@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