# Profile sync after change web-console port

**URL:** <https://forum.pritunl.com/t/profile-sync-after-change-web-console-port/2563>\
**Category:** Pritunl\
**Tags:** pritunl, pritunl-client\
**Created:** [October 29, 2024, 1:22pm UTC](https://forum.pritunl.com/t/profile-sync-after-change-web-console-port/2563 "2024-10-29T13:22:37Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [October 29, 2024, 1:22pm UTC](https://forum.pritunl.com/t/profile-sync-after-change-web-console-port/2563/1 "2024-10-29T13:22:37Z")

</div>

Hello,

We recently changed the port value for web-console from default 443 to 8443 using command

```auto
# pritunl set app.server_port 8443

```

and restarted the pritunl process. But when connecting the Pritunl client an error occurs - it tries to use the previous old port value and the log contains:

```auto
[2024-10-29 13:5:48][ERROR] Profiles: Failed to sync profile configuration
RequestError: Request: Client error ssl=true hostname=IP-address port=old_value method=GET path=/key/sync/61ff20cbc1e709c149fd0572/63fa174a90ebae054ae4fd56/653644b488c49b9109058421/c82dad22605b05dd854ebefe8c5a05db ttl=5000
Error: connect ECONNREFUSED IP:old_value
Error: connect ECONNREFUSED IP:old_value
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1607:16)

```

i.e. profile not synced. Due to the large number of client profiles, it is not convenient to import profiles manually each time. Is there any way for profile synchronization to work?

---

<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:** [October 30, 2024, 7:49am UTC](https://forum.pritunl.com/t/profile-sync-after-change-web-console-port/2563/2 "2024-10-30T07:49:29Z")

</div>

[Here](https://docs.pritunl.com/docs/configuration-3) mentioned “Users using a Pritunl client will sync all configuration changes before connecting and will not need to update the configuration”. Does this also include change of web-console port value?

---

<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:** [October 30, 2024, 12:15pm UTC](https://forum.pritunl.com/t/profile-sync-after-change-web-console-port/2563/3 "2024-10-30T12:15:36Z")

</div>

The client will need to access the web server to sync the changes. Running `sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8443` should make the web server available on both ports. This can be done temporarily until all clients have synced the changes to the new port.

---

<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:** [October 30, 2024, 12:23pm UTC](https://forum.pritunl.com/t/profile-sync-after-change-web-console-port/2563/4 "2024-10-30T12:23:41Z")

</div>

thank you! You mean run this iptables command on server temporarily?

---

<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:** [October 30, 2024, 12:51pm UTC](https://forum.pritunl.com/t/profile-sync-after-change-web-console-port/2563/5 "2024-10-30T12:51:22Z")

</div>

Yes that will allow the clients to access the web server on both ports to be able to sync the changes.

---

<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:** [October 30, 2024, 1:15pm UTC](https://forum.pritunl.com/t/profile-sync-after-change-web-console-port/2563/6 "2024-10-30T13:15:11Z")

</div>

Thank you so much! it’s really works…
