[ERROR] fs_cli.c:1699 main() Error Connecting []

I got following error [ERROR] fs_cli.c:1699 main() Error Connecting [] when I wanted to install FreeSWITCH on debian 12.Its is happening because freeswitch event socket can not listen on any of the interfaces and this is how I solved it: 

Edit /etc/freeswitch/autoload_configs/event_socket.conf.xml

Change listen-ip parameter from :: to 

<param name="listen-ip" value=""/>

and restart freeswitch services

systemctl restart freeswitch 

in case this post helped, you may be interested to check my youtube channel that I have videos about FreeSwitch : https://www.youtube.com/omidmohajerani