Binding to port 443 as non-root user on FX30S

Hi,

We are trying to run a legacy C application as non-root user. This application will be talking to IoT to send and receive data. When we execute the program as non-root user we get error
“azure-iot-sdk-c/c-utility/adapters/socketio_berkeley.c Func:lookup_address_and_initiate_socket_connection Line:283 Failure: getaddrinfo failure -3.”

We tried setting capabilities to our application using “setcap cap_net_bind_service+ep”. Still we are facing the same problem.

Please let us know if there is any way to bind to port 443 as non-root user.

Thanks,
Gowtham

P.S : We are able to successfully run our application as root user.