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

Failure To Connect #37

Closed Ao1Pointblank closed 1 year ago

Ao1Pointblank commented 1 year ago

Description

App fails to send own IP and public key to server ip random port

Reproduction

running a2ln server with no parameters, no firewall, on same wifi network, on latest version from pip, v1.1.10 app version 1.2.7

Screenshots

Screenshot_20230412-172406 resized Screenshot_20230412-172416 resized

Smartphone

patri9ck commented 1 year ago

Can you ping your phone?

$ ping 192.168.0.50
Ao1Pointblank commented 1 year ago

--- 192.168.0.50 ping statistics --- 11 packets transmitted, 11 received, 0% packet loss, time 10013ms rtt min/avg/max/mdev = 42.071/86.258/133.731/26.894 ms

looks like it, with firewall active too

patri9ck commented 1 year ago

Can you show the output when you run a2ln?

Ao1Pointblank commented 1 year ago

image

patri9ck commented 1 year ago

Everything looks fine. It used to work, right? Do you remember changing anything in your network configuration or something similar?

Ao1Pointblank commented 1 year ago

no intentional changes to my network, but the IPs of my devices sometimes change when the router has to be reset after a power outage.

Ao1Pointblank commented 1 year ago

the request just never comes through to the server. are the public keys supposed to not match?

Ao1Pointblank commented 1 year ago

wait, i will try deleting all my configs for the server

patri9ck commented 1 year ago

Yes, they do not match. The server as well as the client (your phone) have their own public key.

Ao1Pointblank commented 1 year ago

i'll try with a different phone

Ao1Pointblank commented 1 year ago

nevermind, it isn't compatible with my old phone (android 8)

Ao1Pointblank commented 1 year ago

um i think i figured it out. i had installed portmaster, another firewall tool recently. i thought it was inactive. no system tray icon or processes with that name running. it was still blocking things somehow as a firewall. sorry to waste your time.

patri9ck commented 1 year ago

No problem, you didn't waste my time! Glad to hear that you found the issue!