Skip to content

Feat: Support multiple server IP addresses (#3665) - #9355

Merged
sithlord48 merged 1 commit into
deskflow:masterfrom
Ashutosh0x:feat/3665-multiple-server-ips
Jan 17, 2026
Merged

Feat: Support multiple server IP addresses (#3665)#9355
sithlord48 merged 1 commit into
deskflow:masterfrom
Ashutosh0x:feat/3665-multiple-server-ips

Conversation

@Ashutosh0x

Copy link
Copy Markdown
Contributor

Fixes #3665. Adds support for specifying multiple server IP addresses as a comma-separated list. The client will try each address in sequence when connecting.

Features:

  • Parse comma-separated server addresses from RemoteHost setting
  • Cycle through addresses when connection fails
  • Reset to first address on successful connection
  • Log which server is being tried

Example: Set RemoteHost to '192.168.1.100, 10.0.0.50, server.local' to try multiple servers.

@Ashutosh0x
Ashutosh0x requested a review from a team January 17, 2026 08:05
Comment thread src/lib/deskflow/ClientApp.h Outdated
@sithlord48
sithlord48 marked this pull request as draft January 17, 2026 12:30
@sithlord48

sithlord48 commented Jan 17, 2026

Copy link
Copy Markdown
Member

@Ashutosh0x please rebase this upon current master and fix the one commit issue and lint this seams ok otherwise.

@Ashutosh0x

Copy link
Copy Markdown
Contributor Author

@sithlord48 Feedback addressed:

  1. Refactor: Switched std::vector to QList for m_serverAddresses.
  2. Linting: Applied clang-format.
  3. History: Squashed fixes into the single feature commit.
  4. Rebase: Rebased onto latest master.

@sithlord48
sithlord48 marked this pull request as ready for review January 17, 2026 15:30

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added two IPs 192.168.0.100, 192.168.0.101 for the client to connect. The first Ip does not have deskflow running and i expect it to connect to the second ip as that is a running server

However this does not happen it just tries the first ip over and over.

initial settings file: /Users/chris/Library/Deskflow/Deskflow.conf
[2026-01-17T10:39:34.480] NOTE: configured 2 server address(es)
[2026-01-17T10:39:34.496] NOTE: started client
[2026-01-17T10:39:34.496] IPC: connecting to '192.168.0.100': 192.168.0.100:24800
2026-01-17 10:39:34.532 deskflow-core[34553:1238247] starting cocoa loop
[2026-01-17T10:39:35.635] WARNING: failed to connect to server=Connection refused, trying next server in list
[2026-01-17T10:39:36.640] IPC: connecting to '192.168.0.100': 192.168.0.100:24800
[2026-01-17T10:39:37.666] WARNING: failed to connect to server: Connection refused
[2026-01-17T10:39:38.671] IPC: connecting to '192.168.0.100': 192.168.0.100:24800
[2026-01-17T10:39:39.677] WARNING: failed to connect to server=Connection refused, trying next server in list
[2026-01-17T10:39:40.680] IPC: connecting to '192.168.0.100': 192.168.0.100:24800
[2026-01-17T10:39:41.691] WARNING: failed to connect to server: Connection refused
[2026-01-17T10:39:42.696] IPC: connecting to '192.168.0.100': 192.168.0.100:24800
[2026-01-17T10:39:43.707] WARNING: failed to connect to server=Connection refused, trying next server in list
[2026-01-17T10:39:44.713] IPC: connecting to '192.168.0.100': 192.168.0.100:24800
[2026-01-17T10:39:45.724] WARNING: failed to connect to server: Connection refused
[2026-01-17T10:39:46.726] IPC: connecting to '192.168.0.100': 192.168.0.100:24800
[2026-01-17T10:39:47.737] WARNING: failed to connect to server=Connection refused, trying next server in list
[2026-01-17T10:39:48.743] IPC: connecting to '192.168.0.100': 192.168.0.100:24800
[2026-01-17T10:39:49.753] WARNING: failed to connect to server: Connection refused
[2026-01-17T10:39:50.759] IPC: connecting to '192.168.0.100': 192.168.0.100:24800
[2026-01-17T10:39:51.769] WARNING: failed to connect to server=Connection refused, trying next server in list

Setting to draft, once you have this working mark it ready for review and ill test again

@sithlord48
sithlord48 marked this pull request as draft January 17, 2026 15:44
@sithlord48

Copy link
Copy Markdown
Member

your local copies base is old ill update the pr but if you need to update it again remember to rebase locally first

@sithlord48
sithlord48 marked this pull request as ready for review January 17, 2026 16:15

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good did a local test and it was able to connect to the second item on the list without issue

@sithlord48
sithlord48 enabled auto-merge (rebase) January 17, 2026 16:16
@sithlord48
sithlord48 merged commit 50e7b3a into deskflow:master Jan 17, 2026
31 of 32 checks passed
@sithlord48 sithlord48 mentioned this pull request Jan 18, 2026
@sithlord48 sithlord48 added the 🪄 feature request This PR adds a requested feature label Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪄 feature request This PR adds a requested feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple server IP addresses to connect to as a list

2 participants