Use Bind Lan in Gateway CLI | Generated by AI

Home 2026.03

The gateway CLI uses --bind (not --host). The --bind option accepts a mode: loopback, lan, tailnet, auto, or custom — not an IP address directly.

Fix: Update the systemd service file to replace --host 0.0.0.0 with --bind lan (or auto):

ExecStart=/usr/bin/node /home/lzw/.npm-global/lib/node_modules/openclaw/dist/index.js gateway run --bind lan --port 18789

On the remote host:

systemctl --user edit openclaw-gateway.service
# or edit the file directly:
nano ~/.config/systemd/user/openclaw-gateway.service

Change the ExecStart line — replace --host 0.0.0.0 with --bind lan. Then:

systemctl --user daemon-reload
systemctl --user restart openclaw-gateway.service

Use --bind lan to listen on LAN interfaces, or --bind auto to let openclaw decide based on config. loopback would restrict to 127.0.0.1 only (won’t work for remote access).


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjavaWeChat QR · X: @lzwjava · Say hi 👋

Back Donate