Response copied from NAT configuration · Issue #939 · ipfs/ipfs-docs · GitHub
Your API port is exposed in your config file as
/ip4/127.0.0.1/tcp/5001 (go-ipfs/config.md at master · ipfs/go-ipfs · GitHub) which means that it’s only listening on the local interface not whatever is exposed to the world. If you’d like you can change that to
0.0.0.0 or something else.
However , doing so will mean that anyone in the world would be able to control your node unless you add some level of protections in front (also given that you’re just using HTTP and not HTTPS the data will also not be encrypted as it’s sent over the wire between your machine and AWS). So definitely beware before doing this.
@thedarkknight197 responded with:
Thank you or your answer, I will try with 0.0.0.0, it’s not a problem because I will have a nodejs middleware that allow access and write data for only user authorized