The agent uses socket.gethostbyname() to retrieve the IP address of the host by looking up the hostname, returned from socket.gethostname(), against either the local resolver or the hosts file.
On macOS the device hostname is not present in /etc/hosts by default, so looking up the hostname fails, causing the agent to exit.
The agent uses
socket.gethostbyname()to retrieve the IP address of the host by looking up the hostname, returned fromsocket.gethostname(), against either the local resolver or the hosts file.On macOS the device hostname is not present in
/etc/hostsby default, so looking up the hostname fails, causing the agent to exit.