How are you tring to connect? Are you specifiying the systems IP Address or FQDN? I've seen a similar issue to the error:
failed(13001) : in Zapi::invoke, cannot connect to socket
I'd recommend ensuring that DNS is correctly configured for the system you attempting to connect to (IE there is a DNS A record and a PTR record for it) which is resolvable from the host you are attempting to connect from then attempt to add the system using the FQDN. If the system is resolvable in DNS and you are already attempting to connect via the FQDN but are recieving the above error then check the systems HTTPD and SSL configuration. Assuming you've secured your 7-Mode system to use the HTTPS protocol then the connection will use TCP port 443.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Thanks for the response. I will give that a try. I can ping the filer using the FQDN from the host im trying to connect from. Im currently looking also checking the firewall rules with out network team. If i get it working ill reply back here .