Okay seems like now I got a different problem with the desktop edge.
The Desktop Edge displays the correct port and url, but the service still connects to the old address.
The iOS Version works fine and connects without a problem.
if I take a look at the service log, it still tries to connect to the old port.
[2024-11-30T15:17:53.525Z] DEBUG ziti-sdk:ziti.c:325 is_api_session_expired() ztx[0] is_api_session_expired[TRUE] - api_session is null
[2024-11-30T15:17:53.525Z] INFO ziti-sdk:ziti.c:936 ziti_re_auth_with_cb() ztx[0] starting to re-auth with ctrl[https://ctrl.example.com:1280] api_session_status[0] api_session_expired[TRUE]
[2024-11-30T15:17:53.525Z] DEBUG ziti-sdk:ziti.c:276 ziti_set_auth_started() ztx[0] setting api_session_state[0] to 1
[2024-11-30T15:17:53.525Z] DEBUG ziti-sdk:ziti.c:360 ziti_stop_api_session_refresh() ztx[0] ziti_stop_api_session_refresh: stopping api session refresh
[2024-11-30T15:17:53.525Z] VERBOSE ziti-sdk:ziti_ctrl.c:143 start_request() ctrl[ctrl.example.com] starting POST[/authenticate?method=cert]
[2024-11-30T15:17:54.575Z] TRACE tunnel-cbs:ziti_tunnel_ctrl.c:228 process_cmd() processing command[GetMetrics] with data[{"Identifier":"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Roaming/NetFoundry/JuTe_ C-JT01.json"}]
[2024-11-30T15:17:54.575Z] TRACE ziti-edge-tunnel:ziti-edge-tunnel.c:771 on_write_event() Events message is sent.
[2024-11-30T15:17:54.575Z] TRACE ziti-edge-tunnel:ziti-edge-tunnel.c:771 on_write_event() Events message is sent.
[2024-11-30T15:17:55.568Z] ERROR ziti-sdk:ziti_ctrl.c:164 ctrl_resp_cb() ctrl[ctrl.example.com] request failed: -4078(connection refused)
[2024-11-30T15:17:55.568Z] WARN ziti-sdk:ziti.c:1623 api_session_cb() ztx[0] failed to get api session from ctrl[https://ctrl.example.com:1280] api_session_state[1] CONTROLLER_UNAVAILABLE[-16] connection refused
[2024-11-30T15:17:55.568Z] DEBUG ziti-sdk:ziti.c:1665 api_session_cb() ztx[0] unhandled error, setting api_session_timer to 5s
[2024-11-30T15:17:55.568Z] DEBUG ziti-sdk:ziti.c:283 ziti_set_unauthenticated() ztx[0] setting api_session_state[1] to 0
[2024-11-30T15:17:55.568Z] DEBUG ziti-sdk:ziti_ctrl.c:254 ziti_ctrl_clear_api_session() ctrl[ctrl.example.com] clearing api session token for ziti_controller
[2024-11-30T15:17:55.568Z] DEBUG ziti-sdk:ziti.c:365 ziti_schedule_api_session_refresh() ztx[0] ziti_schedule_api_session_refresh: scheduling api session refresh: 5000ms
I took a look at the profile in C:\Windows\System32\config\systemprofile\AppData\Roaming\NetFoundry, the json still states the old port and address in field "ztAPI".
config.json has the new port but the enrollment json has the old one.
I added back the web section for a client-management on the "old" port, so the client can connect again, so my clients are now back online and they display the old port again.
I tested this section again with the "newAddress" field, the client now displays the new port, but the json file still has the old port.
I checked everything and came to the following conclusion:
The change via "newAddress" works, but only persists while the data-service in running.
After restarting the pc or the service, the gui still displays the new port but tries to connect to the old port. If it connects to the old port and the "newAddress" is not set, the GUI now also reflects the old port.
With the newAddress set, it connects to the new Port but only while the service is running.
So steps to reproduce would be:
(1) configure the controller to have both ports via the web: section.
(2) configure the old port to reflect the "newAddress" field.
(3) restart controller
(4) connect with the desktop-edge and verify the gui states the new port
(5) configure the controller only to have the new port and no newAddress
(6) disable and enable the identity and verify you can still connect via the new port
(7) restart the Ziti Desktop Edge Service (can be done via gui)
(8) verify the gui still has the new port, but conenction is not possible
(8.1) verify the service logs with state the old port.
I think this might be a bug in the ziti-desktop-client.
I can open up an issue on github and provide logs and configuration if you would like to!
And always don't rush yourself with an reply, this it not a production issue or anything important as I can work with an workaround!