TCP connection error , port 443 N: Connect failed errno=13

I am getting the following error in the logread when my Legato application is trying to connect to another server application on the device (which is not in the legato system) via port 443. My adef file has sandboxed: false and the application is being started by an init script. Only this script is kept in the package. When I run my application outside the legato system i.e without starting from legato - I don’t face an issues to connect via port 443 to the server application.

device is FX30s
legato version : 16.10.1
Application: Legacy C application ported for this device

adef file:

    sandboxed: false

    bundles:
    {
    file:
    {
    [xr] Init.sh /bin/

    }

    }

    requires:
    {
    file:
    {
    /bin/sh /bin/sh
    /etc/hosts /etc/
    }

    }

    processes:
    {
    envVars:
    {
    LD_LIBRARY_PATH=/path/to/required/Libs/for_my_Legacy_application
    }

    run:
    {
    (Init.sh)
    }

    maxCoreDumpFileBytes: 100K
    maxFileBytes: 20480K
    //faultAction: restart

    }

    maxMemoryBytes: 90440K

    start: auto

ERROR:
fx30s user.err Legato: =ERR= |Init.sh[26707] | [2020/06/29 06:22:06:7588] N: Connect failed errno=13

I read that, USB interface does not have much restrictions regarding iptable rules, since sandboxed is set to false I am assuming my app is getting root privileges as well, so I am out of ideas as to why the connection is not working inside the legato system and works properly outside.

Please refer to https://forum.legato.io/t/tcp-connection-error-port-443-n-connect-failed-errno-13/5276/8