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

Bug: You need to be online to pair devices. #24

Closed
niklaskoskowski opened this issue Feb 11, 2023 · 3 comments
Closed

Bug: You need to be online to pair devices. #24

niklaskoskowski opened this issue Feb 11, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@niklaskoskowski
Copy link

Hi there,
i just set up PairDrop on my netcup.de Webhosting via node.js.
So far so good, but as soon as I try to use it, it either says "No server connection. Retry in 5s..." or "You need to be online to pair devices."

@schlagmichdoch
Copy link
Owner

This probably happens because your HTTP server does not route your websocket requests correctly. Therefore, those requests fail and the client shows a message that the server is not reachable.

Be sure to follow the documention and have a look at the Apache configuration example: https://github.com/schlagmichdoch/PairDrop/blob/master/docs/host-your-own.md#using-apache
specifically:

	RewriteEngine on
	RewriteCond %{HTTP:Upgrade} websocket [NC]
	RewriteCond %{HTTP:Connection} upgrade [NC]
	RewriteRule ^/?(.*) "wws://127.0.0.1:3000/$1" [P,L]

@schlagmichdoch schlagmichdoch added the bug Something isn't working label Feb 12, 2023
@schlagmichdoch schlagmichdoch added documentation Improvements or additions to documentation and removed bug Something isn't working labels Feb 15, 2023
@schlagmichdoch
Copy link
Owner

@niklaskoskowski Has it worked since? I’d like to close this issue.

@schlagmichdoch
Copy link
Owner

@niklaskoskowski I will close this for now. Feel free to reopen with additional information if it is still not working for you.

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

No branches or pull requests

2 participants