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

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

Open
error404-personnotfound opened this issue Nov 5, 2017 · 8 comments

Comments

@error404-personnotfound
Copy link

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

@lakeman
Copy link
Member

lakeman commented Nov 5, 2017

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
Copy link
Author

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
Copy link
Author

screenshot 3

@lakeman
Copy link
Member

lakeman commented Nov 5, 2017

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
Copy link
Author

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
Copy link
Member

lakeman commented Nov 5, 2017

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
Copy link
Member

lakeman commented Nov 5, 2017

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants