gnirehtet icon indicating copy to clipboard operation
gnirehtet copied to clipboard

spacedesk doesn't work over gnirehtet

Open Riduidel opened this issue 3 years ago • 9 comments

Like mentionned in #420 discussion, I want to use gnirehtet to establish an isolated network bewteen my Windows machine and my Android tablet to maximize resolution and response of that network screen when using spacedesk. So far, I'm able to use it to browse internet over USB (excellent thing!). Which demonstrates the "VPN" works. However, when trying to start spacedesk client, it never finds the server running on my Window machine. I suspected it was because server discovery relied upon UDP packets being sent by server or client, so, according to documentation, I set the server IP address in the client, but it didn't either work. And when checking the spacedesk server console, I can see no connection from client. What can I do to have that working ?

Riduidel avatar Dec 10 '21 12:12 Riduidel

However, when trying to start spacedesk client, it never finds the server running on my Window machine.

This is expected, the machines are not on the same LAN (even with gnirehtet).

I set the server IP address in the client, but it didn't either work

With the IP address, it should work.

If this is the same machine as where gnirehtet is running, you can access the host "localhost" using 10.0.2.2 from the Android device.

rom1v avatar Dec 10 '21 13:12 rom1v

Well, strangely enough, even when I enter the 10.0.2.2 it never finds the server. Is there any Android app to "view" the network ?

Riduidel avatar Dec 10 '21 13:12 Riduidel

I don't know how spacedesk works to establish the connection.

Gnirehtet just allows the Android device to open a connection from the other end of the tunnel (i.e. from the computer).

rom1v avatar Dec 10 '21 13:12 rom1v

So, I installed Net Analyzer from Google Play Store (ad-riden, but well). I then started gnirehtet and tried to see what was IP address of my tablet

Screenshot_20211210-161228_Network Analyzer

Which gave me a non-surprising 10.0.0.2. I'm a little more puzzled by the network mask ... Isn't the 255.255.255.255 supposed to preent any kind of access to local network?

Riduidel avatar Dec 10 '21 15:12 Riduidel

Mind you, after that test, I successfully setup my tablet to use my freebox dns server at address 192.168.0.254. And this address legitimatally appears in Net Analyzer info screen.

Riduidel avatar Dec 10 '21 15:12 Riduidel

I'll give you a way. I don't know why, but it works

  1. Connect the devices to the LAN
  2. Connect using spacedesk
  3. Disconnect the LAN
  4. You will find that spacedesk can still be used normally, which proves that the connection has been established

Yang-Herman avatar Jan 09 '22 18:01 Yang-Herman

I tried moonlight and the 10.0.2.2 works great. S10+, android 11

KiKiHUN1 avatar Jun 04 '22 10:06 KiKiHUN1

@Riduidel > Mind you, after that test, I successfully setup my tablet to use my freebox dns server at address 192.168.0.254. And this address legitimatally appears in Net Analyzer info screen. Can you share with more details how you manage to change the IP in Net Analyzer app?

bladyle avatar Jul 26 '22 18:07 bladyle