# Web API showing "Could not connect to the IPFS API"

**URL:** <https://discuss.ipfs.tech/t/web-api-showing-could-not-connect-to-the-ipfs-api/17921>\
**Category:** Kubo\
**Created:** [April 28, 2024, 12:21pm UTC](https://discuss.ipfs.tech/t/web-api-showing-could-not-connect-to-the-ipfs-api/17921 "2024-04-28T12:21:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pop24](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@pop24](https://discuss.ipfs.tech/u/pop24)\
**Post date:** [April 28, 2024, 12:21pm UTC](https://discuss.ipfs.tech/t/web-api-showing-could-not-connect-to-the-ipfs-api/17921/1 "2024-04-28T12:21:51Z")

</div>

I have installed kubo\_v0.28.0\_linux-arm64.tar.gz to a Raspberry Pi 3B and it seems to be running OK, however when I try to access it from another PC using [http://raspberrypi3b:5001/webui](http://raspberrypi3b:5001/webui) I get an error saying “Could not connect to the IPFS API”. I have tried everything it suggests and tried a lot of ideas found from googling it but I can’t figure out why it doesn’t work.

EDIT: I have solved the problem, I just needed to make sure the daemon was running properly, and then I followed the instructions on the page it was giving me. I had to run:

ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin ‘[“[http://raspberrypi3b:5001](http://raspberrypi3b:5001)”, “[http://localhost:3000](http://localhost:3000)”, “[http://127.0.0.1:5001](http://127.0.0.1:5001)”, “[https://webui.ipfs.io](https://webui.ipfs.io)”]’

and

ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods ‘[“PUT”, “POST”]’
