Connection error in LocalSend

I’m using LocalSend to transfer files from my PC to my phone. When I try to transfer files from my phone to my PC, I get a connection error:

Jon RsHttpClientError.reqwest(field0: error sending request for url (https://192.168.1.186:53317/api/localsend/v2/prepare-upload): client error (Connect): tcp connect error: No route to host (os error 113))

Do I need to modify the firewall to do this operation? What else could be bringing up this error?

Yes, that points at the firewall. LocalSend’s README (the official repo on GitHub) has a firewall section: incoming TCP and UDP on port 53317 must be allowed on the receiving device. Since PC-to-phone works but phone-to-PC fails with “No route to host”, your PC’s firewalld is very likely blocking inbound 53317. The README’s fix for firewalld: sudo firewall-cmd --permanent --add-port=53317/tcp, the same with /udp, then sudo firewall-cmd --reload. If it still fails after that, my hypothesis would be that the phone and PC are in different network segments (guest Wi-Fi or AP isolation), but the port part is straight from the docs.

1 Like

Thanks. It works now.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.