How to make IPFS gateway available to local network

I would like to run an IPFS node on a raspberry pi on my local network, and have it’s gateway serve requests from my local network.

I set Address.Gateway to /ip4/0.0.0.0/tcp/8080 and restarted the service. I can access the gateway from the local machine, but not from another machine on the network. The other machine can successfully ping the machine.

This is the command I am executing on the other machine
curl "http://192.168.1.142:8080/ipfs/QmWr7XP2

Any idea what configuration I need to do to have kubo serve local network requests?

You have to do the following:

  1. Enable intercommunications between the machines in LAN (on the router), as now they are looking disabled.
  2. Explicitly set the IP for the IPFS gateway in the config (192.168.*.*.).
  3. Set up the firewall properly to prevent the port access from outside LAN.