Skip to content

SERVER_IP is 127.0.0.1 on any server whose LAN address is in 172.16.0.0/12 #132

Closed

Description

@nixfred

What happens

serverIp in omarchyd/apps.mjs (line 60) is meant to skip container bridge addresses, but its regex excludes the whole private range 172.16.0.0/12, not just the Docker/Podman bridges:

!/^(10\.88|10\.89|172\.1[6-9]|172\.2\d|172\.3[01])\./.test(i.address)

A server whose only non-internal IPv4 address is in that range (for example 172.20.x.x, or 172.31.x.x on an AWS default VPC) gets 127.0.0.1 as SERVER_IP. That value is passed to every app's compose file (composeEnv, line 1024) for "this server's address", so apps that advertise or bind to it use the loopback address and are unreachable from other devices.

How to reproduce

I copied the function and fed it a fake interface list:

eth0 172.31.4.20 (not internal) -> 127.0.0.1
eth0 172.20.1.5  (not internal) -> 127.0.0.1

Addresses such as 172.15.0.1, 172.32.0.1 and 192.168.1.5 are returned unchanged. Expected: the real address of the interface.

Suggested fix

Skip only the actual container bridges (the Podman defaults 10.88/10.89 and 172.17.0.0/16, or interfaces named like docker0, podman*, cni*, br-*, veth*) instead of the whole /12.

Environment

Omarchy Server main (0786ba9, 0.9.50), Node 26.

Activity

  1. calledtoconstruct commented on Nov 21, 2026

    @calledtoconstruct
    Collaborator

    Working to resolve this.

    No open pull request references this issue, and no one has commented that they are working on it.

    #870, #136, #595, #593, #743, #789, #739, #764, and #681 share the app installer with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  2. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thank you @nixfred. A LAN address in 172.16.0.0/12 is used as the server address. Only the container bridges are skipped. This is on main in #874.

    🤖 Generated with Grok 4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions