# Help accessing files from public gateway

**URL:** <https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106>\
**Category:** Help\
**Tags:** go-ipfs\
**Created:** [February 17, 2018, 11:47am UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106 "2018-02-17T11:47:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nervous-energy](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nervous-energy](https://discuss.ipfs.tech/u/nervous-energy)\
**Post date:** [February 17, 2018, 11:47am UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106/1 "2018-02-17T11:47:42Z")

</div>

I am learning about IPFS on my desktop (Ubuntu 16.04).

Following the documentation and tutorials I have been able to add files and folders, and use IPNS – however only on my local machine: localhost:8080/ipfs/ + hash.

The webui shows I am connected to 50+ peers, but when I attempt to use a public gateway, I am not able to retrieve any file I have uploaded - the request times out or I get a gateway error.

I have tried modifying the configuration of my ipfs daemon to `"Gateway": "/ip4/0.0.0.0/tcp/8080"`, however this has not worked. I am using go-ipfs v 0.4.2, which I appreciate is not the same as the [ipfs.io](http://ipfs.io) (currently v0.4.14, according to [https://ipfs.io/api/v0/version](https://ipfs.io/api/v0/version) ), but I am unable to locate any alternative gateway that is using 0.4.2.

My guess is that the problem is local on my end, but I’m not sure where to begin debugging. I also I don’t want to just try it on AWS without understanding why it doesn’t work locally. Unfortunately the IPFS docs and tutorials seem incomplete on this issue (I’d be happy to be corrected on this point).

Does anyone have any tips on how I should proceed? My hope is to eventually run an IPFS node on a virtual machine and use IPNS to serve content to browsers. I’d be happy to supply any additional information.

Thanks,

---

<div class="post-metadata">

**Author:** ![koalalorenzo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/koalalorenzo/32/745_2.png) [@koalalorenzo](https://discuss.ipfs.tech/u/koalalorenzo)\
**Post date:** [February 18, 2018, 4:05pm UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106/2 "2018-02-18T16:05:33Z")

</div>

Have you tried with multiple gateways anyway?  
A list here: [https://ipfs.github.io/public-gateway-checker/](https://ipfs.github.io/public-gateway-checker/)

Usually this is due to:

- Slow connection/network
- Firewalls/rules
- The content is only provided by your own node: there are no “mirrors”

Have you tried with our gateway [https://siderus.io/ipfs/](https://siderus.io/ipfs/) followed by the hash?

---

<div class="post-metadata">

**Author:** ![nervous-energy](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nervous-energy](https://discuss.ipfs.tech/u/nervous-energy)\
**Post date:** [February 19, 2018, 9:49am UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106/3 "2018-02-19T09:49:42Z")

</div>

Thanks for the reply.

Yes, I have tried multiple public gateways without resolution. siderus gives a 502 error.

To be clear, I have opened port 4001 with ufw, and when I start the daemon I get the following read out:

```
Initializing daemon...
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/XXX.XXX.XX.XXX/tcp/4001
Swarm listening on /ip4/XX.XXX.XX.XXX/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
Gateway (readonly) server listening on /ip4/0.0.0.0/tcp/8080
Daemon is ready

```

‘ipfs swarm peers’ returns \>40 peers, and the webui confirms this.

I can access files using the hash on my localhost, however not using a public gateway. I am using reasonable broadband and have left my computer connected to the network for a few hours, so I don’t think its a propagation issue.

I’m at a bit of a loss now. I’m not sure what else I could be missing wrt firewalls and ports.

I’ll give the daemon a bit more time, and if this doesn’t work I’ll attempt to reinstall.

---

<div class="post-metadata">

**Author:** ![jamiehale](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jamiehale](https://discuss.ipfs.tech/u/jamiehale)\
**Post date:** [February 19, 2018, 2:27pm UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106/4 "2018-02-19T14:27:10Z")

</div>

When you say you opened port 4001 on ufw, you mean on your desktop machine, right? Do you still have a router/firewall sitting between you and the internet? If so, you’ll need to open the same port on it and enable port forwarding to your desktop.

I had my IPFS running on a server in my home DMZ but had to open + forward as described above to get things to work.

J

---

<div class="post-metadata">

**Author:** ![koalalorenzo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/koalalorenzo/32/745_2.png) [@koalalorenzo](https://discuss.ipfs.tech/u/koalalorenzo)\
**Post date:** [February 19, 2018, 5:49pm UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106/5 "2018-02-19T17:49:59Z")

</div>

Correct, you also could check if UPNP/Automatic firewalls rules is enabled on your router/firewall!

How big is this file?  
Can’t you upgrade to 0.4.13?

---

<div class="post-metadata">

**Author:** ![nervous-energy](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nervous-energy](https://discuss.ipfs.tech/u/nervous-energy)\
**Post date:** [February 25, 2018, 1:22pm UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106/6 "2018-02-25T13:22:55Z")

</div>

You are correct, I was able to resolve the issue by re configuring my router. Thank you both.

What I still don’t really understand is why my IPFS.JS instance on the same machine connected the network without the need for port fowarding.

@koalalorenzo is 0.4.13 an **upgrade** over 0.4.2?? or is it just considered more stable?

---

<div class="post-metadata">

**Author:** ![leerspace](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@leerspace](https://discuss.ipfs.tech/u/leerspace)\
**Post date:** [February 25, 2018, 1:52pm UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106/7 "2018-02-25T13:52:35Z")

</div>

> [@nervous-energy](#):
>
> is 0.4.13 an upgrade over 0.4.2?? or is it just considered more stable?

Yes, it is an upgrade.

---

<div class="post-metadata">

**Author:** ![koalalorenzo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/koalalorenzo/32/745_2.png) [@koalalorenzo](https://discuss.ipfs.tech/u/koalalorenzo)\
**Post date:** [February 25, 2018, 2:31pm UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106/8 "2018-02-25T14:31:44Z")

</div>

yes it is an upgrade, and 0.4.2 was released long time ago (2016), while 0.4.13 was released few months ago.  
You can check the changes here: [https://github.com/ipfs/go-ipfs/blob/master/CHANGELOG.md](https://github.com/ipfs/go-ipfs/blob/master/CHANGELOG.md)  
(TL;DR: a lot of things changed 😛 )

---

<div class="post-metadata">

**Author:** ![nervous-energy](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nervous-energy](https://discuss.ipfs.tech/u/nervous-energy)\
**Post date:** [February 25, 2018, 4:53pm UTC](https://discuss.ipfs.tech/t/help-accessing-files-from-public-gateway/2106/9 "2018-02-25T16:53:14Z")

</div>

My bad, just realised that I temporarily lost the ability to read! 13 \> 2
