localsend / localsend

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

Feature request Support Tailscale detection #1123

Open jdysya opened 9 months ago

jdysya commented 9 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 8 months ago

me too

ericxob77 commented 7 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 7 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 7 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 7 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 7 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",
            ],
        },
    ]
}