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
I read from this post 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.
@jyijyi Thanks for the reply. Shutting down the firewall did not help.
And I did not understand what you meant by putting the init script in the /tmp - do you mean in the legato package?
My scenario is I am using an Init script to start my C application. When I run the script outside legato I have no issues, when i run the script from legato - I am facing the issues. I am only using the script so that I can start my applications from legato, but keep all the required files and stuff in other locations. Also the app is not sandboxed.
I ran into another post that seem to have had a similar scenario: THIS But their issue was solved by changing from ipv6 to ipv4.
In my case, if i do netstat -ent , I am getting the following output: tcp 0 1 127.0.0.1:36211 127.0.0.1:443 SYN_SENT
But then the app gets killed after some time
Is this due to some setting/permission issue that I have missed. I am very new to Legato.
moving the script to /tmp did not help. Im still getting the error Jun 29 10:01:30 fx30s user.err Legato: =ERR= | startapp[18601] | [2020/06/29 10:01:30:6562] N: Connect failed errno=13