tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
18.66k stars 1.44k forks source link

Android to have the same features as windows client to toggle between different devices. #3712

Closed sontjer closed 2 years ago

sontjer commented 2 years ago

What are you trying to do?

I have two openwrt devices with different subnodes enabled. On windows client, it's pretty easy to toggle between them. The latest Android version offers a list of my devices, however, I cannot choose which one to connect to. The only feature that I can do about the listed the devices is that I can copy the IP address.

How should we solve this?

Add a feature, like on windows on Mac OS to let the users to toggle between different devices.

What is the impact of not solving this?

Always stays connected on the first device that Android client used to connect to.

Anything else?

Should import the same features like on windows and Mac OS system.

bradfitz commented 2 years ago

I don't follow. Which part of the Mac/Win clients are you referring to?

sontjer commented 2 years ago

mydevices to choose from Thanks for your rapid respond. This is what I referred to: on windows I can choose which of the following devices I want to connect to, so that I can get access to specific subnet. But android appears doesnt have the feature so far.

sontjer commented 2 years ago

The following "openwrt-jy" and "openwrt-xh" already deployed different subnet, and I hope to switch between them freely on Android device.

DentonGentry commented 2 years ago

That isn't what that UI does on Windows. In the following screenshot, my tailnet has nodes named terraria, ubuntu, unifi, and zoneminder. I have a web browser open connecting to the Tailscale address for zoneminder, so there is a Wireguard tunnel established to connect to it.

Screen Shot 2022-01-11 at 6 17 33 PM

I'm not actively connected to terraria, ubuntu, or unifi, so they don't have dots in the UI.

Then I connected to a service on the terraria node, and it got a dot for an active connection

Screen Shot 2022-01-11 at 6 20 21 PM

Selecting the node in the Windows UI copies its IP address to the clipboard, the same as what the Android client does.

sontjer commented 2 years ago

Yes, on winodws everthing works like a charm! This is what I need on Android devices. Only a list of connect devices, no way I can toggle between openwrt-xh and openwrt-jy... I can only long press to copy the ip address. android1 On andriod I can switch to openwrt-xh, but subnet stays on openwrt-jy that I connected to for the very first time.

DentonGentry commented 2 years ago

The Windows UI does NOT toggle between openwrt-xh and openwrt-jy. All the Windows UI does is copy the IP address to the clipboard.

What happens when you select openwrt-jy in the Windows UI?

sontjer commented 2 years ago

The Windows UI does NOT toggle between openwrt-xh and openwrt-jy. All the Windows UI does is copy the IP address to the clipboard.

What happens when you select openwrt-jy in the Windows UI?

Nope, everything works like a charm in Windows UI! I mean on Android verion, no way I can switch between ‘openwrt-xh’ or 'openwrt-jy' subnets which I created.

DentonGentry commented 2 years ago

Can you describe what happens when you select openwrt-xh in the Windows UI? You believe it switches to subnets from openwrt-xh?

And when you select openwrt-jy, you believe it switches to using subnets from openwrt-jy?

openwrt-xh and openwrt-jy use --advertise-routes? Are they both exporting the same routes, like 192.168.0.0/24, but two different LANs using the same IP addresses?

sontjer commented 2 years ago

Thanks for your attention! I already used 'use --advertise-routes' on both openwrt-xh and openwrt-jy, and their subnet doesn't overlap. Upon selection of openwrt-xh or openwrt-jy, subnets changes accordingly and correctly in Windows 10 UI. My qustions is on Android verion, I CANNOT switch between them, there's literally NO function to let me do that. Hopefully I made myself clear already...

bradfitz commented 2 years ago

What we're telling you is that the Windows and macOS clients do not have code to even start to do what you think they do. The menu is purely wired up to copy their IP addresses to the clipboard. That's it. There's no subnet selection functionality anywhere in the GUIs.

sontjer commented 2 years ago

What we're telling you is that the Windows and macOS clients do not have code to even start to do what you think they do. The menu is purely wired up to copy their IP addresses to the clipboard. That's it. There's no subnet selection functionality anywhere in the GUIs.

Thanks for reply, I got it. Anyway, really appreciate the ingenious work.