AppDaemon python script not making network connections

Hi guys

I am running AppDaemon within my home assistant, its been installed using the addon store through supervisor. AppDaemon like all other addons run in a docker.

Is there something in the way scripts are running within the docker that would prevent them from making network connections?

I am trying to run a script that connects to my Sonos speakers using the soco package, the script runs fine outside of AppDaemon through a normal terminal. The package is loading fine in AppDaemon, but it seems like the script cannot establish network connections. I see errors like this for example : (Caused by NewConnectionError(’: Failed to establish a new connection: [Errno 111] Connection refused’)).