Skip to content

feat: display local IP alongside public IP in install success message#166

Merged
Siumauricio merged 1 commit into
mainfrom
feat/install-local-ip
Jul 7, 2026
Merged

feat: display local IP alongside public IP in install success message#166
Siumauricio merged 1 commit into
mainfrom
feat/install-local-ip

Conversation

@Siumauricio

Copy link
Copy Markdown
Contributor

Summary

The install script's final message only printed the public IP URL. Users installing Dokploy on local VMs or home hardware often can't reach that address because no port forwarding is configured, so a successful install looks broken.

This reuses the existing get_private_ip() helper (already used for the swarm advertise address) to also print the local URL:

Congratulations, Dokploy is installed!
Wait 15 seconds for the server to start
Please go to http://<public-ip>:3000
If you are on the same local network, use http://<private-ip>:3000

The extra line is only shown when a private (RFC1918) IP is detected and it differs from the address already displayed — so VPS-only servers and users who passed ADVERTISE_ADDR with their local IP see no duplicate line.

Testing

Verified inside an Alpine container (busybox ash) by executing the exact functions and final-message block extracted from the script:

  • Default flow → prints public IP and local IP (172.17.0.2) ✅
  • ADVERTISE_ADDR set to the private IP → single line, no duplicate ✅
  • ADVERTISE_ADDR set to a distinct address → both lines ✅
  • sh -n syntax check passes ✅

Closes #152

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@Siumauricio Siumauricio merged commit 23ba5f6 into main Jul 7, 2026
1 check failed
@Siumauricio Siumauricio deleted the feat/install-local-ip branch July 7, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: Display Local IP alongside Public IP for improved accessibility

1 participant