patri9ck / a2ln-app

A way to display Android phone notifications on Linux (App)
GNU General Public License v3.0
83 stars 7 forks source link

Unable to begin pairing process #21

Closed LividJava closed 1 year ago

LividJava commented 1 year ago

Hi there, I'm attempting to setup this application on my LG Stylo 4 (LM-Q710).

I have the server setup and it's responding with a public key and pairing server.

However when entering this into the application (F-Droid version as I cannot find the Google Play version Link is broken) it doesn't initiate any sort of pairing request. Is there anywhere I should start looking for troubleshooting

Thanks in Advance.

patri9ck commented 1 year ago

Hey, thanks for your issue. Did you follow the guide at https://www.patri9ck.dev/a2ln/pairing.html? Are both of your devices in the same LAN? The Google Play link should be fixed soon.

LividJava commented 1 year ago

Yes I've followed the guide exactly as is. Devices are on the same LAN. I'm not using a port that requires root.

I will note, when I go to add a device, My screen looks slightly different than the screenshots.

image

patri9ck commented 1 year ago

Interesting. That is definitely an old version of the app which doesn't implement the new features. It seems like F-Droid hasn't updated the app yet. We will probably need to wait a day or so.

LividJava commented 1 year ago

Alright, Yeah F-Droid only has version 1.1.1 from what I can tell. Do you have build instructions so I can compile the app myself in the mean time?

patri9ck commented 1 year ago

I guess the easiest way would be to install Android Studio, import the project, enable developer mode on your phone, plug it with a USB cable into your PC and install the app there. In the future I will provide APKs here on GitHub.

LividJava commented 1 year ago

Confirmed working in ver 1.2.0

WeebNetsu commented 1 year ago

This issue seems to potentially be back, I tried connecting via the QR code (Using Xiaomi Redmi 9T and Linux Mint 21), but nothing happened on either end, the pairing just fails (I am on the same network). The logs just says:

Trying to pair with <my address>:35397
Failed to send own IP and public key to <my address>:35397
patri9ck commented 1 year ago

Strange. I don't remember actually fixing something specific to make it work. Does a simple ping, for example from your computer to your phone, work?

WeebNetsu commented 1 year ago

Yes, pinging seems to go through without any issues

patri9ck commented 1 year ago

Does a firewall maybe block the pairing port?

WeebNetsu commented 1 year ago

Yes! On the head, disabling my firewall on the port made it work instantly, thank you for the help!

patri9ck commented 1 year ago

Great to hear that it works for you!