Skip to content
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

"Can't connect to the server" #286

Closed
effeottantuno opened this issue Aug 6, 2023 · 6 comments
Closed

"Can't connect to the server" #286

effeottantuno opened this issue Aug 6, 2023 · 6 comments

Comments

@effeottantuno
Copy link

Hi, i've recently got a new pc and now qrcp won't work, when i scan the qr code on both my iphone using ios and my android using firefox i get this:

photo_2023-08-07_01-20-51
photo_2023-08-07_01-20-46

@effeottantuno
Copy link
Author

i've also tried using the --keep-alive tag but still nothing.

@claudiodangelis
Copy link
Owner

Hello @effeottantuno , try to pass the port number using standard ports, for example:

qrcp --port 8080 yourfile

And let me know if it works this way, it might be a firewall issue.

Thanks!
Claudio

@basketshoe
Copy link

@claudiodangelis I'm having the same issue, even with port 8080.
Tried with iOS 16.7.1 Safari and DuckDuckGo

@effeottantuno
Copy link
Author

@claudiodangelis same as @basketshoe not working even with 8080, tried on android 14 using firefox

@claudiodangelis
Copy link
Owner

Please reach out to my email (my github username + gmail.com) or through Telegram (same github username), we can debug together privately.
Thanks!

@claudiodangelis
Copy link
Owner

After some debugging with @basketshoe and @effeottantuno it turned out that issue was caused by firewalld blocking incoming connections.

To permanently open a specific port run the following command, replacing 8080 with your preferred choice:

sudo firewall-cmd --permanent --add-port 8080
sudo firewall-cmd --reload

Run the tool using that port:

qrcp -p 8080

Remember that you can permanently configure the tool to use a specific port by adding this to the configuration file:

port: 8080

Also, read the documentation of firewalld for understanding the consequences of opening ports and to find right configuration for your needs: https://firewalld.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants