# Local discovery problem on Android 11

**URL:** https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093
**Category:** Android
**Created:** [December 29, 2020, 1:57pm UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093 "2020-12-29T13:57:42Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![webeule](https://forum.syncthing.net/user_avatar/forum.syncthing.net/webeule/32/9180_2.png) [@webeule](https://forum.syncthing.net/u/webeule)
#### Post date: [December 29, 2020, 1:57pm UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/1 "2020-12-29T13:57:42Z")

</div>

Hello all,

I am using the syncthing-fork for android and local discovery is not working (see also here: [735#](https://github.com/Catfriend1/syncthing-android/issues/735#issue-775856549)) I have these logs when I activated beacon logs:

```
2020-12-29 11:44:31 Enabled debug data for "beacon"
2020-12-29 11:44:33 route ip+net: netlinkrib: permission denied
2020-12-29 11:44:33 Stopped broadcastBeacon writer: route ip+net: netlinkrib: permission denied
2020-12-29 11:44:33 broadcastBeacon: Failed service 'Service@0x40000d66c0 created by broadcastBeacon@0x4000138230/writer' (1.999843 failures of 2.000000), restarting: true, error: "{Service@0x40000d66c0 created by broadcastBeacon@0x4000138230/writer Service@0x40000d66c0 created by broadcastBeacon@0x4000138230/writer} returned unexpectedly", stacktrace: [unknown stack trace]
2020-12-29 11:44:33 Starting broadcastBeacon writer
2020-12-29 11:45:03 route ip+net: netlinkrib: permission denied
2020-12-29 11:45:03 Stopped broadcastBeacon writer: route ip+net: netlinkrib: permission denied
2020-12-29 11:45:03 broadcastBeacon: Failed service 'Service@0x40000d66c0 created by broadcastBeacon@0x4000138230/writer' (1.999810 failures of 2.000000), restarting: true, error: "{Service@0x40000d66c0 created by broadcastBeacon@0x4000138230/writer Service@0x40000d66c0 created by broadcastBeacon@0x4000138230/writer} returned unexpectedly", stacktrace: [unknown stack trace]
2020-12-29 11:45:03 Starting broadcastBeacon writer
2020-12-29 11:45:31 Exiting backoff state.
2020-12-29 11:45:31 Starting multicastBeacon writer
2020-12-29 11:45:31 Starting multicastBeacon reader
2020-12-29 11:45:31 route ip+net: netlinkrib: permission denied
2020-12-29 11:45:31 Stopped multicastBeacon writer: route ip+net: netlinkrib: permission denied
2020-12-29 11:45:31 multicastBeacon: Failed service 'Service@0x40000d6d80 created by multicastBeacon@0x40001382d0/writer' (1.000000 failures of 2.000000), restarting: true, error: "{Service@0x40000d6d80 created by

```

When you need more information, please let me know.

---

<div class="post-metadata">

### Author: ![kluppy](https://forum.syncthing.net/user_avatar/forum.syncthing.net/kluppy/32/4197_2.png) [@kluppy](https://forum.syncthing.net/u/kluppy)
#### Post date: [December 29, 2020, 8:57pm UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/3 "2020-12-29T20:57:14Z")

</div>

It seems to be working for me on Android 11.

> 2020-12-29 20:54:42 sent 515 bytes to 192.168.0.255:21027 2020-12-29 20:54:42 write udp [::]:43262-\>[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 bond0 2020-12-29 20:54:42 sent 515 bytes to [ff12::8384]:21027 on wlan0 2020-12-29 20:54:42 write udp [::]:43262-\>[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 wlan1 2020-12-29 20:54:42 write udp [::]:43262-\>[ff12::8384]:21027: sendmsg: network is unreachable on write to [ff12::8384]:21027 p2p0 2020-12-29 20:54:42 recv 515 bytes from [fe80::b479:c9ff:fe98:1b28%wlan0]:43262 2020-12-29 20:54:58 recv 452 bytes from 192.168.0.102:35263 2020-12-29 20:54:58 recv 452 bytes from [fe80::c069:fd7f:5856:50e9%wlan0]:44536

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [January 28, 2021, 8:57pm UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/4 "2021-01-28T20:57:21Z")

</div>

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

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [March 24, 2021, 11:34am UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/5 "2021-03-24T11:34:50Z")

</div>



---

<div class="post-metadata">

### Author: ![DrSchnagels](https://forum.syncthing.net/user_avatar/forum.syncthing.net/drschnagels/32/3962_2.png) [@DrSchnagels](https://forum.syncthing.net/u/DrSchnagels)
#### Post date: [March 24, 2021, 11:44am UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/6 "2021-03-24T11:44:28Z")

</div>

Sorry for re-opening this topic!

I have suddenly this problem too after updating my OnePlus 7t Pro yesterday to Android 11. Does anyone know how to fix this? Local discovery was 2/2 before. Now it does not work anymore. I used to use only fixed IP-addresses for Syncthing in my network but i recently switch to only local discovery.

Thanks a lot!

![112123358-7acaeb80-8bc1-11eb-8f53-5e866211107d](https://forum-uploads.syncthingcdn.net/original/2X/7/7eb053d130c63d4defc68e44dfa8f6c6f7a59943.jpeg)

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [March 24, 2021, 11:45am UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/7 "2021-03-24T11:45:44Z")

</div>

Could you post the logs?

---

<div class="post-metadata">

### Author: ![DrSchnagels](https://forum.syncthing.net/user_avatar/forum.syncthing.net/drschnagels/32/3962_2.png) [@DrSchnagels](https://forum.syncthing.net/u/DrSchnagels)
#### Post date: [March 24, 2021, 11:50am UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/8 "2021-03-24T11:50:15Z")

</div>

You can find logs in Catfriends Fork github.

> <https://github.com/Catfriend1/syncthing-android/issues/735>
>
> Description of the issue
> Local discovery does not work. When I turn on global discorvery it is just working. I also used...

For a log from me i have to find out how to get the log. The Syncthing Fork app does not show a log for Syncthing itself, only the Android log. Do i need to enable debug logs? Or detailed logs in the Syncthing App settings?

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [March 24, 2021, 11:59am UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/9 "2021-03-24T11:59:39Z")

</div>

You can open the webinterface in the app and retrieve the logs from there

---

<div class="post-metadata">

### Author: ![DrSchnagels](https://forum.syncthing.net/user_avatar/forum.syncthing.net/drschnagels/32/3962_2.png) [@DrSchnagels](https://forum.syncthing.net/u/DrSchnagels)
#### Post date: [March 24, 2021, 12:08pm UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/10 "2021-03-24T12:08:44Z")

</div>

The log doesnt show anything like an error. Maybe i need to enable some debug info?

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [March 24, 2021, 12:13pm UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/11 "2021-03-24T12:13:29Z")

</div>

There’s logs in the first post. I don’t see any indication that yours should be any different. In the fork’s issue there’s a link to a golang issue with other projects observing something similar when targeting sdk30 ([x/mobile: Calling net.InterfaceAddrs() fails on Android SDK 30 · Issue #40569 · golang/go · GitHub](https://github.com/golang/go/issues/40569)). So basically one more thing that currently wont work when targeting that. It worked for @kluppy - maybe they are using syncthing-android, which still targets sdk 29?

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [March 26, 2021, 8:50am UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/14 "2021-03-26T08:50:54Z")

</div>

So the gplay version is crippled after November? Thanks Google /s

---

<div class="post-metadata">

### Author: ![bt90](https://forum.syncthing.net/user_avatar/forum.syncthing.net/bt90/32/18565_2.png) [@bt90](https://forum.syncthing.net/u/bt90)
#### Post date: [March 26, 2021, 2:09pm UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/16 "2021-03-26T14:09:55Z")

</div>

I doubt that Google will change its course here. “Use the Android APIs or get wrecked” seems to be the tone over the last few Android releases.

I fear that the UI-only approach of the app won’t work anymore at a certain point in the future. That means it needs to use Android APIs directly via gomobile or via the wrapper(e.g REST calls).

Let’s just hope that i’m completely wrong.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [March 26, 2021, 6:22pm UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/17 "2021-03-26T18:22:26Z")

</div>

> [@Catfriend1](#):
>
> I don’t know why they rejected it more times again for the fork and accepted it for the official app

Because @imsodin and @tomasz86 had atleast 4-5 rounds of modifying the privacy policy for it to finally be accepted.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [May 5, 2021, 7:31pm UTC](https://forum.syncthing.net/t/local-discovery-problem-on-android-11/16093/18 "2021-05-05T19:31:59Z")

</div>

4 posts were split to a new topic: [Slow connection android](https://forum.syncthing.net/t/slow-connection-android/16768)
