localsend
localsend copied to clipboard
cannot send file from phone to laptop but can send file from laptop to phone
localsend app can detect my phone via same wifi netwowrk and can send file to it but my phone cannot detect my laptop and even if it detects the laptop via same wifi network it cannot send file to it. windows version 11 android version 15 windows app version 1.17.0 and android version 1.17.0
this is the error report showing every time
after trying so many fixes lastly i retored the firewall settings and that's fixes the issue for now
遇到了同样的问题,我已经解决了,但我使用的是linux系统,不是windows!以下是针对 /etc/nftables.conf 配置的详细修改方案,以允许 LocalSend 的 53317 端口通信:
修改步骤(基于现有配置)
-
编辑配置文件
sudo vim /etc/nftables.conf -
在
chain input部分添加以下规则(置于ssh规则之后):tcp dport 53317 accept comment "allow LocalSend TCP" udp dport 53317 accept comment "allow LocalSend UDP"最终效果示例:
chain input { type filter hook input priority filter policy drop ct state invalid drop comment "early drop of invalid connections" ct state {established, related} accept comment "allow tracked connections" iif lo accept comment "allow from loopback" ip protocol icmp accept comment "allow icmp" meta l4proto ipv6-icmp accept comment "allow icmp v6" tcp dport ssh accept comment "allow sshd" tcp dport 53317 accept comment "allow LocalSend TCP" # 新增 udp dport 53317 accept comment "allow LocalSend UDP" # 新增 pkttype host limit rate 5/second counter reject with icmpx type admin-prohibited counter }注:
- 规则需放在
policy drop之后、limit rate之前。
- 规则需放在
-
保存并测试配置
sudo nft -f /etc/nftables.conf # 加载新配置 sudo nft list ruleset | grep "53317" # 验证规则是否存在