-
-
Notifications
You must be signed in to change notification settings - Fork 22
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]: Synchronize fails from linux PC (host) to Android mobile (connect) #96
Comments
Hello @promitheas17j ! Your Passy host binds to
Synchronization can work either way, for as long as one device is hosting and another one is connecting while on the same network.
Both host and client need to have the same passwords, this is a part of the synchronization security measures. The only case where this is not required is for entry sharing.
You have allowed the ports but the address is still loopback and is unreachable. Passy expects relaxed network rules when in the app, if you're interested in being able to allow specific address and port combination in and out of your network, considering using Passy dedicated server (See |
I am using ufw and I allowed the ports through. I'm unsure how to allow passy in general.
What I meant is if I have these passwords saved on each device:
and I sync with either device as the host, will the result be that all passwords will be synced to each device as such:
That's what I mean by both ways.
This seems like a good idea for me, but I'm unsure if I have selected the right IP and port. For the IP I used the one after running ip a and which in the following line:
For port I put the one it generated 5592, and allowed it incoming and outgoing in my firewall. Based on the dynamic nature of the IP, that would mean when it changes my sync server will not work anymore, correct? I don't have access to the router so that I can make any changes if it is required, so perhaps it might be better to simply figure out how to allow everything from passy to pass through my firewall with a rule. Thanks for your quick replies, and sorry about all my questions. I'm not that great with these topics :) |
Yup, that's the point. You can even make simultaneous changes to different entries on both devices and have them synchronize. The only limitation for now is the inability to change fields of the same entry on different devices at the same time, that would result in an overwrite.
You will probably want to change your local IP settings to static. If you're talking about public IP then there's really not much you can do about it as it's all specific to your ISP; in case you want your server to be accessible via the Internet I'd recommend that you use an online web server or a port forwarding service such as ngrok to ensure that your address doesn't change.
You shouldn't need any access to the router to configure local synchronization. As for online synchronization I would recommend using ngrok or any other port forwarding service because getting your ISP to get you a static address can be pretty tricky. In case of local network synchronization you should be able to configure your local IP as static. You can do this pretty easily via GUI on most modern Linux distros, first find and copy your local IP by typing Unlike the Passy app, Passy dedicated server will not seek for available IP addresses and will always bind to the address you specified. You can always verify the connection by clicking the
No problem! Don't worry about it, I hope that you manage to figure out a way to set up your server and I wish you best luck. Feel free to ask any more questions, don't be ashamed of your confusion. I am planning to provide a paid server solution for Passy in the future to make it easy for people to get their own synchronization servers up and running but for now it's possible to set up your own server. |
Bug description
From my Linux PC as the Host when I try to synchronise with my mobile, as soon as I scan the QR code and click the link or manually type in the IP and port, I get the message that
The port shown below the QR code on the PC is 37417 (allowed in my ufw for both IN and OUT), but when I look at the error log on the mobile device I see it is trying to connect to 127.0.0.1:46660 (each time it is different)
When I do it the other way around, by making the mobile device the host and connect to it by typing the IP and port on the PC, it works to synchronise.
I realise I am probably missing something or doing something wrong, but I don't know what it could be.
Here are a couple issues I looked at: #95 #72
Also, please clarify for me whether synchronisation works both ways or if it actually matters if the device is the host and has the new passwords, or vice versa.
Expected outcome
Synchronise passwords which are in PC to mobile device.
Steps to reproduce
Error log
Here are the logs from the mobile device:
App version
v1.8.0 - Entry Tags
Submission checklist
The text was updated successfully, but these errors were encountered: