Make your gateway public
By default, your IPFS HTTP gateway is not exposed to the world. It only works locally. Let's allow anyone in with this command to enable it on port 8080:
You'll need to restart the IPFS daemon with
sudo ipfs daemon in order to changes to apply.
Accessing your HTTP Gateway
Check with curl command if IPFS HTTP gateway is accessible by trying to download a file from the IPFS network.
If everything works smoothly, you should get the content of that file:
Congrats! If your gateway is reachable, we're now ready to upload files to the network.