GrapheneOS to PC sync connection issue

Hi. Love your software.

I have a Phone (GrapheneOS) that syncs to PC (ARCHish) usb tethered… sometimes.

I use a VPN on each devices that:

  1. allows local connections

  2. leaves both devices with local 10.x.y.phone and 10.a.b.PC ip’s that vary

Also the PC is Receive only and ignores deletes.

Phone is set to ‘Addresses’: quic://0.0.0.0:22000, tcp://0.0.0.0:22000

It will connect very slowly if i enable dynamic. I really only want to use local net.

My issues are the phone and PC are not syncing.

I can on the PC see the phone has under

quic://0.0.0.0:22000 unexpected device id, expected UCHTNVJ-… got TFFBWHP-… tcp://0.0.0.0:22000 unexpected device id, expected UCHTNVJ-… got TFFBWHP-…

Please advise.

I also had problems with syncthing before.

Tell more about your setup. What mean Archish ?

How do you connect via local network using what ?

Firewall ? did you do any changes ?

Do you have any DNS modification on GOS ?

This is your mistake. 0.0.0.0 is effectively localhost when you attempt to connect to it. You need to put the phone’s IP address(es) (or dynamic) in there.

1 Like

Tell more about your setup. What mean Archish ?

“Arch-ish” is a arch like linux derivative.

How do you connect via local network using what?

I connect my PC to my phone via usb directly, nothing else.

Firewall ? did you do any changes ?

None by me

Do you have any DNS modification on GOS ?

The Torrent software modifies the DNS.

Are you saying in the Phones address space I put the phones address if I want to do a local connection to the PC?

As I said the PC is seeing the phone, but has an incorrect ID. That would imply 0.0.0.0 works, but something is mangling the TLS packets, right? Or do i have this all wrong?

On the PC, did you set tcp://0.0.0.0:22000, quic://0.0.0.0:22000 in the phone’s Advanced → Addresses field? If so, the PC will try to connect to itself on port 22000, and because you are connecting to the wrong device (the PC), you get an unexpected device ID error.

On the PC, did you set tcp://0.0.0.0:22000, quic://0.0.0.0:22000 in the phone’s Advanced → Addresses field? If so, the PC will try to connect to itself on port 22000, and because you are connecting to the wrong device (the PC), you get an unexpected device ID error.

I am unable to parse your reply.

On the PC, I set the phones Advanced → Addresses field, and that causes the PC, not the phone that I set, to connect to the PC/itself? Is that what you meant?

Perhaps I’ll ask this, What do i set in the advanced address field to only use the local network but not connect to itself?

Yes.

The correct way to do this would be to put the phone’s address in there, for example, if your phone’s IP address is 10.42.0.88, then you would set something like tcp://10.42.0.88:22000, quic://10.42.0.88:22000 in there.

That’s probably not an option in your scenario as you said the IPs vary, and in that case dynamic (or something integrating with the Syncthing API to change the addresses) is the best you’ve got.

When using dynamic, what connection type do you have after it finally connects?

My confusion is I expect to set the Phones “address” to the PC’s address, the thing it is looking for, not it’s own address.

It seems you are saying the “addresses” for the Phone, or any item, is it’s own address.

Having set it as suggested it seems to work, so thank you

1 Like

When using dynamic, what connection type do you have after it finally connects?

I have a net connection that works but is rather slow

The addresses you set there were the addresses the PC uses to connect to the phone.

For robustness/consistency, you could also set which addresses the phone uses to connect to the PC, in Syncthing-Fork → Devices → PC → Addresses (link icon)

So if your PC’s address is 10.42.0.1, something like this:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.