-
Notifications
You must be signed in to change notification settings - Fork 5
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
Forced IPv6 on arm? #5
Comments
Hi, thanks for the feedback. |
Hello @jonhadfield, thank you for your quick answer. Regarding the go's native library I assumed as much. The hosts idea has occured to me too already before but apparently I made a mistake. Now I have corrected it and seems like it did the trick :) To be completely honest this is a solution that is satisfactory to me. So if you wish to close the ticket I'm not going to be against it :) |
I've got a raspberry pi (running linux on arm64) running so I can do some tests. |
That does sound like a reasonable explanation. What I do not understand is IPv6 is preferred to such extent that IPv4 is completely ignored - as I said ping and nslookup worked perfectly fine. There is very little chance I might have caused it in some way - but I spent good portion of yesterday trying to figure it out to no avail. If you'd like I can perform more tests for you :) |
I agree. I've seen general behaviour in linux where ipv6 connections will be attempted before ipv4, but not exclusively so that they simply try and fail. I am intrigued now and will test on arm64 asap. |
Tested on Linux running arm64, with and without ipv6 enabled, and couldn't recreate the issue. I wish I could test on Android (as I think that's the next thing to rule out) but wouldn't know where to start. |
hi :) I have not managed to obtain an app that I could try out. I got a simple app (source code below) but it did not run in the android/termux environment. I don't know what was the culprit - we tried to compile for android (GOOS=android GOARCH=arm64) but that did not compile. So we compiled for linux, arm and arm64 but neither of them were possible to run. So I kinda need you to quickly put together something simple so I can test that for you. I'm not sure if that is any iteresting to you but here's the code of his app that I did not manage to run+error.
and here's the result
|
Hi
I'm guessing it will be a DNS (lookup) failure. You could also try this which uses the native go library to do a simple lookup (the precursor to the http.Get in your first example):
|
I've done some digging and it looks like a known problem with running go apps on Android: The latter suggests using the following to compile using: https://godoc.org/golang.org/x/mobile/cmd/gomobile. I'll give it a go. |
either way, your sncli is compiled for linux/arm, so it should not matter. after all the problem we are trying to debug here is the IPv6 :) |
Hi,
first thank you for your app! This is exactly what I need to compliment my use of Standard Notes on Android :)
My usecase is to be able to insert new note directly from homescreen using Termux (https://github.com/termux/termux-app) and Tasker - and thus avoiding having to open the app, wait for the decrypt and then pressing the plus button.
I tested this on linux desktop and all was great. But once I run the arm64 version in termux on android I cannot connect to the server. It seems like it forces IPv6 - which is not setup on our selfhosted instance.
Here's the log:
Is there a way I can force it to use normal IPv4 address which I'm able to ping as well as use via standard Standard Notes app?
I've tested Termux v0.77 on both Android 7 and Android 9.
It is possible that I'm looking in a wrong direction or even stretching your app way beyond it's limits. I'll be happy if you can let me know :)
The text was updated successfully, but these errors were encountered: