linuxmint / warpinator

Share files across the LAN
GNU General Public License v3.0
1.21k stars 81 forks source link

Warpinator Connection Error on Linux Mint 20.0 #104

Closed Twente-54 closed 2 years ago

Twente-54 commented 3 years ago

I am having a problem with Warpinator running on a linux mint 20.2 laptop. It cannot get it to connect with Warpinator on my Sony Xperia phone (android 10) because of a "connection error". I enabled UDP etc on gate 42000 in the firewall but that does not help. Looking at the adroid app it appears that it is trying to connect with "null@" whereas it should be trying to connect with "@". I can understand that trying to connect with "null@<computer name" gets it nowhere, although it does seem to mention a correct IP adress?

I have a second laptop running mint 20.0; this has no problem with the android app on the phone and connects without any problems as it allways did. Never changed anything in the firewall settings. It won't however connect with the mint 20.2 laptop. Also here it is trying to connect with "" instead of "@". Even worse is that the mint 20.2 Warpinator doesn't even see the mint 20.0 laptop; it is not mentioned in it's list of connectable systems.

If I disable the firewall on 20.2 then it cán connect to the android warpinator, that then is correctly stating that it is connecting with "@". It will however still not connect with mint 20.0 for the same reason; it still does not show it in the list. Warpinator on mint 20.0 is then still trying to connect to "computer name".

Twente-54 commented 3 years ago

I see that some text is dropped; it should read like this:

I am having a problem with Warpinator running on a linux mint 20.2 laptop. It cannot get it to connect with Warpinator on my Sony Xperia phone (android 10) because of a "connection error". I enabled UDP etc on gate 42000 in the firewall but that does not help. Looking at the adroid app it appears that it is trying to connect with "null@computer name" whereas it should be trying to connect with "my name@computer name". I can understand that trying to connect with "null@computer name" gets it nowhere, although it does seem to mention a correct IP adress?

I have a second laptop running mint 20.0; this has no problem with the android app on the phone and connects without any problems as it allways did. Never changed anything in the firewall settings. It won't however connect with the mint 20.2 laptop. Also here it is trying to connect with "computer name" instead of "my name@computer name". Even worse is that the mint 20.2 Warpinator doesn't even see the mint 20.0 laptop; it is not mentioned in it's list of connectable systems.

If I disable the firewall on 20.2 then it cán connect to the android warpinator, that then is correctly stating that it is connecting with "my name@computer name". It will however still not connect with mint 20.0 for the same reason; it still does not show it in the list. Warpinator on mint 20.0 is then still trying to connect to "computer name".

mtwebster commented 3 years ago

Hi, can you run warpinator in debug mode on the laptops:

warpinator --debug

and paste the output (or dpaste) these while they try to connect. Please keep the android device inactive (or turn off wifi) for this, so only the connections between the two laptops are logged.

Twente-54 commented 3 years ago

Hi Michael,

As per your request. I added a screenprint of both windows. They are in Dutch; the 20.2 one says as much as that it can't find another computer. I also added screen prints of the firewall settings. Succes tracing the problem; I hope it wasn't me doing something silly.

Kind regards Jan Stegehuis (Twente-54)

Op zo 19 sep. 2021 om 18:38 schreef Michael Webster < @.***>:

Hi, can you run warpinator in debug mode on the laptops:

warpinator --debug

and paste the output (or dpaste https://dpaste.org/) these while they try to connect. Please keep the android device inactive (or turn off wifi) for this, so only the connections between the two laptops are logged.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linuxmint/warpinator/issues/104#issuecomment-922501914, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVWNXCJMGZ4AGWXIJ5ZR7HDUCYGYFANCNFSM5EKOKOJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mtwebster commented 3 years ago

Hi I need you to run warpinator --debug on both laptops so I can gather information - also, there are no screenshots attached here (you should be able to drag the files from the file manager into the response box here).

Twente-54 commented 3 years ago

I did run warpinator in debug mode.

I answered your email and added the debug results and screenshots as attachments.

[image: image.png]

If that is not the way to go about this, then tell me what is.

Op ma 20 sep. 2021 om 15:36 schreef Michael Webster < @.***>:

Hi I need you to run warpinator --debug on both laptops so I can gather information - also, there are no screenshots attached here (you should be able to drag the files from the file manager into the response box here).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linuxmint/warpinator/issues/104#issuecomment-922934926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVWNXCMBXS4577HVZPNSPALUC42EZANCNFSM5EKOKOJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Twente-54 commented 3 years ago

Trying it in github

Succes

debug warpinator mint 20-0.txt debug warpinator mint 20-2.txt screen print fire wall settings mint 20-0 screen print fire wall settings mint 20-2 screen print warpinator mint 20-0 screen print warpinator mint 20-2 .

mtwebster commented 3 years ago

So both of those pcs are using the most recent (or close to it) version. For those to communicate with one another they each need to have tcp ports 42000 and 42001 open.

You need to also open 42000 udp on both, which should allow backward compatibility to connect to the android device. I noticed you opened udp port 4200 rather than 42000 on the one machine.

So, to summarize, both pcs should have the following open: 42000 tcp 42001 tcp 42000 udp

Try fixing these things and we'll see where to go from there.

Twente-54 commented 3 years ago

I fixed the firewall setting according to your specs and the laptops can now communicate both with each other and with the android telephone.

I added the UDP setting to the mint 20-2 firewall by removing the "/tcp" from the 42000 entry; it now looks like this. screen print fire wall settings mint 20-2 To do this I had to remove the original 42000/tcp entry that Warpinator had added to the rules when being installed en add a new entry since such entries can't be changed.

I added the 42001/tcp entry to the mint 20-0 firewall settings since it was missing there; it now looks the same as the mint 20-2 settings. The Mint 20-0 Warpinator does not add this entry when it is installed. It does however correctly add the 42000 entry without the "/tcp" part.

As I said: " I hope it wasn't me doing something silly." and it turns out it wás me. Well to the larger extent. Thanks for your help.

Regards Jan (Twente-54)

mtwebster commented 2 years ago

Glad we worked this out - closing.