I am new to ipfs. I have a M1 mac. Started following the quickstart tutorial for ipfs cli. I was able to get the initial documentation and already started my ipfs node. The link I’m reading is the following one:
then it comes the part to create a very simple text file and adding it to ipfs and access it using the ipfs URL:
Am I doing something wrong? Or is the documentation outdated?
Thanks in advance!
UPDATE: I used the web ui and added a file, but still not able to view it in the ipfs.io url (I copied the link from the share option found in the UI):
Yes, at the moment you were testing my computer was suspended, but at the moment I tried to get the file, the daemon was up and running (otherwise the web UI wouldn’t be accessible).
I tried using the commands you posted (ipfs id) and it seems I get a correct output (I’m a newbie so I’m just following instructions); however using the public URL still returns a 504.
At the moment you tested, my computer was sleeping, that’s why. But when I posted the thread I had the daemon running and I was able to see the webui.
I used the command ipfs id you showed (not sure how it works but anyways) and I get a correct output (I guess). However I’m not able to access to it using the public URL (https://ipfs.io/ipfs/QmWPAQ6pePdRh12219MTf74khnQjuRYDMSP53aNaH7cnCs). This is the output I got while the daemon is running:
❌ Could not connect to multiaddr: context deadline exceeded
✔ Found multiaddrs advertised in the DHT:
/ip4/127.0.0.1/tcp/4001
/ip4/127.0.0.1/udp/4001/quic
/ip4/190.86.33.160/tcp/15694
/ip4/190.86.33.160/udp/13863/quic
/ip4/190.86.33.160/udp/32257/quic
/ip4/192.168.1.18/tcp/4001
/ip4/192.168.1.18/udp/4001/quic
/ip6/::1/tcp/4001
/ip6/::1/udp/4001/quic
✔ Found multihash adverised in the dht
❌ There was an error downloading the CID from the peer: could not connect to peer
I guess it seems my node is not reachable from outside? Do I need to expose it publicly somehow? My internet provider doesn’t assign me a public IP address, but I thought the ipfs daemon created a tunnel or something like that
Thank you for sharing this link! That helped me to understand what the issue was. I assumed the node was exposed automagically to the internet despite my network configuration. I ended up using ngrok and adding the exposed URL in the Announce addresses, using this tutorial: Hosting IPFS node with ngrok · GitHub
Now I’m able to see the file.