localsend / localsend

An open-source cross-platform alternative to AirDrop
https://localsend.org
Apache License 2.0
53.77k stars 2.9k forks source link

Feature request Support Tailscale detection #1123

Open jdysya opened 10 months ago

jdysya commented 10 months ago

Is your feature request related to a problem? Please describe.

As we know, the localsend work in the Same LAN, but Tailscale makes creating software-defined networks easy: securely connecting users, services, and devices. Tested by me,it worked when I specify ip address though the app(localsend) can not detect the connection. So, could we support the detection ?

Describe the solution you'd like

I just learned about this tool. I'm not familiar with it.

Describe alternatives you've considered

No response

Additional context

No response

wkk-dev commented 9 months ago

me too

ericxob77 commented 8 months ago

This would be a great enhancement! With Tailscale installed localsend could then easily send files to any device located anywhere in the world!

ericxob77 commented 8 months ago

Please describe in more detail how you got localsend to work through a tailscale connection... I can't figure a way to get it to work. Thanks!

jdysya commented 8 months ago

Please describe in more detail how you got localsend to work through a tailscale connection... I can't figure a way to get it to work. Thanks!

You need specify the ip address(in the tailscale) because the app can not detect the connection.And it worked if you used the ip address tailscale provided. Screenshot_2024-03-11-12-49-50-263_org.localsend.localsend_app.jpg

ericxob77 commented 8 months ago

Aha! Clicking the arrow pointing to the two concentric circles opens that dialog where one can enter a custom IP address. Yes, more integration with Tailscale would be cool.

chikei commented 8 months ago

the technical difficulties for this feature are 1. tailscale does not support multicast/broadcast yet so there is no efficient way to detect other localsend peer. 2. tailscale assigns ip from 100.0.0.0/8 space so it is not practical (or it is ?) to test all possible ip.

I think currently enter tailscale peer address in localsend's favorites is a good workaround though.

Hk-Gosuto commented 5 months ago

I have configured a smaller subnet through access control, which operates normally under localsend.

{
    "nodeAttrs": [
        {
            "target": [
                "autogroup:admin",
            ],
            "ipPool": [
                "100.64.200.0/24",
            ],
        },
    ]
}
EDIflyer commented 2 weeks ago

Ooh interesting - agree it's great that the manual IP entry works - although auto-detection would be great, what I've done as a workaround is added those manual IPs for my devices to my favourites list within LocalSend :)

PS - although I see Tailscale have a feature in alpha testing called Taildrop that also lets you do this (https://tailscale.com/kb/1106/taildrop) but nice that LocalSend works with it too, esp if you have a mix of devices that aren't all on the same Tailnet.