# Failed to connect using wireguard, fixed by manually editing the profile to change sync\_host

**URL:** <https://forum.pritunl.com/t/failed-to-connect-using-wireguard-fixed-by-manually-editing-the-profile-to-change-sync-host/1567>\
**Category:** Pritunl VPN\
**Tags:** pritunl, pritunl-client\
**Created:** [November 23, 2023, 6:09am UTC](https://forum.pritunl.com/t/failed-to-connect-using-wireguard-fixed-by-manually-editing-the-profile-to-change-sync-host/1567 "2023-11-23T06:09:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![newholder](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/n/43a26b/32.png) [@newholder](https://forum.pritunl.com/u/newholder)\
**Post date:** [November 23, 2023, 6:09am UTC](https://forum.pritunl.com/t/failed-to-connect-using-wireguard-fixed-by-manually-editing-the-profile-to-change-sync-host/1567/1 "2023-11-23T06:09:55Z")

</div>

My Pritunl web console is behind a reverse proxy and Cloudflare proxy. So, I set the public address to my server’s public IP. That then makes all config uses that ip for vpn remote, and sync host. The problem is, because I set it up as a reverse proxy, I set the port to 8008, and that port is blocked. But, by setting the sync host to my domain and setting remote to server public IP, it works fine. But, that means I have to edit every profile to use Wireguard. So, how do I set a different sync host than remote?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [November 24, 2023, 5:57pm UTC](https://forum.pritunl.com/t/failed-to-connect-using-wireguard-fixed-by-manually-editing-the-profile-to-change-sync-host/1567/2 "2023-11-24T17:57:30Z")

</div>

The sync address option is only shown in the hosts tab which requires an enterprise subscription. The sync address was repurposed for WireGuard connections and configuration sync is only available with a subscription so this option is not visible. You can use the command below to set this value from the MongoDB shell.

```auto
use pritunl
db.hosts.updateMany({}, {$set: {sync_address: "domain.com"}});

```

---

<div class="post-metadata">

**Author:** ![ffrr](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/f/47e85d/32.png) [@ffrr](https://forum.pritunl.com/u/ffrr)\
**Post date:** [December 3, 2023, 2:10pm UTC](https://forum.pritunl.com/t/failed-to-connect-using-wireguard-fixed-by-manually-editing-the-profile-to-change-sync-host/1567/3 "2023-12-03T14:10:42Z")

</div>

So in other words this sync address option is only available in the Enterprise version or is it possible to explicitly specify this value in mongodb as mentioned here (in usual -non Enterprise) and it will work?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [December 3, 2023, 4:40pm UTC](https://forum.pritunl.com/t/failed-to-connect-using-wireguard-fixed-by-manually-editing-the-profile-to-change-sync-host/1567/4 "2023-12-03T16:40:37Z")

</div>

The MongoDB shell commands above will set the sync address with or without a subscription.

---

<div class="post-metadata">

**Author:** ![ffrr](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/f/47e85d/32.png) [@ffrr](https://forum.pritunl.com/u/ffrr)\
**Post date:** [December 4, 2023, 10:44am UTC](https://forum.pritunl.com/t/failed-to-connect-using-wireguard-fixed-by-manually-editing-the-profile-to-change-sync-host/1567/5 "2023-12-04T10:44:38Z")

</div>

and if mentioned command will set the sync address without subscription sync feature will work?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [December 6, 2023, 6:21pm UTC](https://forum.pritunl.com/t/failed-to-connect-using-wireguard-fixed-by-manually-editing-the-profile-to-change-sync-host/1567/6 "2023-12-06T18:21:58Z")

</div>

No the configuration sync will not work. The WireGuard connection that also utilizes the sync address will work.
