Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: peer instances showing offline due to wrong probe port

[._.]/ Adam Eivy55e03420cfe4
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
new file mode 100644
index 0000000000..b01e64638c
--- /dev/null
+++ b/.changelog/NEXT.md
@@ -0,0 +1,11 @@
+# Unreleased Changes
+
+## Added
+
+## Changed
+
+## Fixed
+
+- Fix peer probes failing due to wrong port (5554 instead of 5555): update `handleAnnounce` to sync port from peer announcements, fix AddPeerForm fallback port
+
+## Removed
diff --git a/client/src/pages/Instances.jsx b/client/src/pages/Instances.jsx
index c5f4f2da50..4e4984fdaf 100644
--- a/client/src/pages/Instances.jsx
+++ b/client/src/pages/Instances.jsx
@@ -145,7 +145,7 @@ function AddPeerForm({ onAdd }) {
e.preventDefault();
if (!address.trim()) return;
setAdding(true);
- const data = { address: address.trim(), port: parseInt(port, 10) || 5554 };
+ const data = { address: address.trim(), port: parseInt(port, 10) || 5555 };
if (name.trim()) data.name = name.trim();
const result = await addPeer(data).catch(() => null);
setAdding(false);
diff --git a/server/services/instances.js b/server/services/instances.js
index 60b7cbc07c..d97bdc38bd 100644
--- a/server/services/instances.js
+++ b/server/services/instances.js
@@ -247,6 +247,7 @@ export async function handleAnnounce({ address, port, instanceId, name }) {
existing.lastSeen = new Date().toISOString();
existing.status = 'online';
existing.instanceId = instanceId;
+ existing.port = port;
if (name) existing.name = name;
// Mark that this peer has announced to us (inbound connection)
existing.directions = existing.directions || [];