MCMrARM / revolution-irc

A modern Android IRC client. #revolutionirc on Libera.chat
GNU General Public License v3.0
547 stars 63 forks source link

Cannot connect to ZNC bouncer #73

Open hasufell opened 6 years ago

hasufell commented 6 years ago

Doesn't work, no info, no error message, no log. I don't even know how to debug, since it just says "disconnected".

MCMrARM commented 6 years ago

Check the port, password and username and make sure you checked Use SSL.

MCMrARM commented 6 years ago

You can check Logcat for the full log.

hasufell commented 6 years ago

Check the port, password and username and make sure you checked Use SSL.

I did, I have the same configuration on my laptop. There is no indication in the UI what kind of login issue there is. I consider that a bug/missing feature, not a question. I shouldn't have to use logcat to get basic information like that.

Michcioperz commented 6 years ago

For most of cases there is an indication of issues, so your case is a weird edge case, so I wouldn't say this is a basic information.

MCMrARM commented 6 years ago

This isn't a specific issue but asking for help with your specific configuration. Therefore I marked it as a question.

Almost for sure this is an issue that comes down to "Connection refused" and currently there is no reporting for TCP errors. This might be added in a future release and qualifies for an [enchancement], but to keep things clear it would have to be a separate issue with a proper title and description.

hasufell commented 6 years ago

It works when I am connected to mobile network, but doesn't work on wireless. I am connected to the same server via the same wireless network on my laptop though.

MCMrARM commented 6 years ago

I'd say check logcat and eventually see if other IRC apps available also do the same on your phone, as this doesn't look to be an issue with this specific application.

kurahaupo commented 5 years ago

Is there any chance that the ZNC limits the number of incoming connections from the same IP address. And when on WiFi, do you get NATted to the same source IP as your laptop?

If so, you wouldn't be able to connect from both devices at once.

It might be helpful to run tcpdump on your laptop to see what other traffic is going over your WiFi.

Mikaela commented 5 years ago

Is there any chance that the ZNC limits the number of incoming connections from the same IP address.

I think ZNC has limit of 5 connections from not-anonymous IP allowed and it doesn't handle happy eyeballs with web version, I have no idea if that also affects to IRC with some form. https://github.com/znc/znc/issues/593

Another ZNC side troubleshooting step that I can think of is unload fail2ban