From 0786ec22c573df1f7f1a55c37336406ac4d93172 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 7 Jul 2026 09:26:02 -0600 Subject: [PATCH] feat: display local IP alongside public IP in install success message Home servers and local VMs are often not reachable on their public IP because no port forwarding is configured, so the final install message now also prints the private (RFC1918) IP when one is detected and it differs from the address already shown. Closes #152 Co-Authored-By: Claude Fable 5 --- apps/website/public/install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/website/public/install.sh b/apps/website/public/install.sh index 19c1231..53fe70e 100644 --- a/apps/website/public/install.sh +++ b/apps/website/public/install.sh @@ -361,11 +361,18 @@ install_dokploy() { } public_ip="${ADVERTISE_ADDR:-$(get_ip)}" + private_ip=$(get_private_ip) formatted_addr=$(format_ip_for_url "$public_ip") echo "" printf "${GREEN}Congratulations, Dokploy is installed!${NC}\n" printf "${BLUE}Wait 15 seconds for the server to start${NC}\n" - printf "${YELLOW}Please go to http://${formatted_addr}:3000${NC}\n\n" + printf "${YELLOW}Please go to http://${formatted_addr}:3000${NC}\n" + # Home servers and local VMs are often not reachable on their public IP + # (no port forwarding), so also print the private IP when there is one. + if [ -n "$private_ip" ] && [ "$private_ip" != "$public_ip" ]; then + printf "${YELLOW}If you are on the same local network, use http://${private_ip}:3000${NC}\n" + fi + printf "\n" } update_dokploy() {