Skip to main content
Version: 10.2

IPv6 Socket Binding Issue

Issue: Address family not supported by protocol

When starting the Monitor container, you see errors in the logs related to IPv6 socket binding:

Error binding socket
error: error creating server listener: Address family not supported by protocol (os error 97)

Or:

Failed to bind to [::]:5044
Address family not supported by protocol

The Monitor container fails to start because the host operating system has IPv6 disabled or restricted, but the container defaults to using IPv6 (::) for socket binding.

Any service that binds to a network socket may be affected, including multiple services in Vector that listen for incoming data (e.g., syslog, API). The root cause is that the default socket address is set to :: (IPv6), which is not supported on hosts with IPv6 disabled.

Environment Variables

The VECTOR_SOCKET_ADDR environment variable controls which network interface Vector binds to:

ValueDescription
:: (default)Bind to all IPv6 interfaces
0.0.0.0Bind to all IPv4 interfaces
<specific-IP>Bind to a specific IP address

Note: If your host OS has IPv6 disabled, you must set this to 0.0.0.0.

Reference

See the Installation Environment Variables documentation for the complete list of available environment variables.