--server-bind-address
- CLI
- --server-bind-address
- REST
- CLI only
Sets the interface address or Unix socket the server listens on. Bind 0.0.0.0 to accept connections from other hosts or from outside a container. Write an IPv6 address in brackets, such as [::1], or [::] for every interface. A hostname binds the first address it resolves to.
A unix: path, such as unix:/run/zshot.sock, listens on a socket and takes no --server-bind-port.
Example
Listen on every IPv4 interface:
CLI
Run locally
zshot --server --server-bind-address 0.0.0.0Listen on every IPv6 interface:
CLI
Run locally
zshot --server --server-bind-address "[::]"