servalproject / batphone

The Serval Mesh app for Android. EXPERIMENTAL SOFTWARE.
http://www.servalproject.org
GNU General Public License v3.0
398 stars 157 forks source link

Not getting connected to peers. Error when Ad Hoc Mesh mode is selected #134

Open error404-personnotfound opened 6 years ago

error404-personnotfound commented 6 years ago

5782-5880/org.servalproject E/servald: overlay_interface.c:199:overlay_bind_socket() setsockopt(SO_REUSEPORT): Protocol not available [errno=92]

lakeman commented 6 years ago

That's only a warning; https://github.com/servalproject/serval-dna/blob/development/overlay_interface.c#L204

Again, you aren't providing any context.

error404-personnotfound commented 6 years ago

After making the build and running it on an android phone and monitoring the logcat from android studio the following comes up. I think its because of this, the phones are not getting connected to each other. whereas the apk downloaded from playstore does.

11-05 13:25:34.359 13844-13859/org.servalproject E/servald: overlay_interface.c:199:overlay_bind_socket() setsockopt(SO_REUSEPORT): Protocol not available [errno=92]

error404-personnotfound commented 6 years ago

screenshot 3

lakeman commented 6 years ago

Well, that failure should only be a warning (as of 0cc0f37b5)

$ cd app/src/main/jni/serval-dna
$ git checkout -b development origin/development
error404-personnotfound commented 6 years ago

But then the problem is that the phones are not getting connected while running the apk on the phone compiled from this code. Its showing No peers when the Ad Hoc Mesh is turned on and even when the phones are on the same network, and using the same channel.

What all do I need to check regarding the connectivity.

lakeman commented 6 years ago

I'm not sure why you're version of serval-dna (2db8c24?), is failing where the version pinned in 0.93 on the play store (c78ee66) does. However, that log message in the development branch is only a warning, so the problem should go away if you update the submodule.

lakeman commented 6 years ago

Note that the difference might be in the version of the android NDK rather than in our code. As that symbol may not have been defined before.

error404-personnotfound commented 6 years ago

the command is giving this error

~/batphone/app/src/main/jni/serval-dna$ git checkout -b development origin/development fatal: A branch named 'development' already exists.