Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken p2p discovery in local network on Android 11+ #27

Open
pymq opened this issue Nov 18, 2021 · 0 comments
Open

Broken p2p discovery in local network on Android 11+ #27

pymq opened this issue Nov 18, 2021 · 0 comments
Labels
bug Something isn't working OS: Android

Comments

@pymq
Copy link
Member

pymq commented Nov 18, 2021

As a result, in local networks, all connections between two android devices go through relays. Between android and other OS, this issue has less impact because Android --> not Android works fine.

Upstream issue: golang/go#40569

Logs from device:

2021-11-17 22:15:04 ERROR basichost failed to resolve local interface addresses {"error": "route ip+net: netlinkrib: permission denied"}
2021-11-17 22:15:05 ERROR basichost failed to resolve local interface addresses {"error": "route ip+net: netlinkrib: permission denied"}
2021-11-17 22:15:05 INFO awl/p2p Connection established with bootstrap node: 12D3KooWNWa2r6dJVogbjNf1CKrKNttVAhKZr1PpWRPJYX7o4t4M
2021-11-17 22:15:05 INFO net/identify failed to get interface listen addrs%!(EXTRA *net.OpError=route ip+net: netlinkrib: permission denied)
2021-11-17 22:15:05 INFO net/identify failed to get interface listen addrs%!(EXTRA *net.OpError=route ip+net: netlinkrib: permission denied)

Addresses announced to DHT:

"PeerstoreAddrs": [
                    "/ip4/127.0.0.1/tcp/37449",
                    "/ip4/127.0.0.1/udp/42789/quic",
                    "/ip6/::1/tcp/37475",
                    "/ip6/::1/udp/42451/quic"
                ]

Possible solution that we could try: Catfriend1/syncthing-android#800

Also, there is an option to temporary downgrade targetSdkVersion to 29, since we are not publishing the app anywhere at the moment. But when we will, we'll have to set 30 as per google play's policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OS: Android
Projects
None yet
Development

No branches or pull requests

1 participant