A more generic solution if the local IP must be known before starting would be to wait for networking to initialize before starting, we can also handle that dependency via systemd.