# Can't access file using HTTP Gateway

**URL:** <https://discuss.ipfs.tech/t/cant-access-file-using-http-gateway/4582>\
**Category:** Kubo\
**Created:** [January 2, 2019, 3:48am UTC](https://discuss.ipfs.tech/t/cant-access-file-using-http-gateway/4582 "2019-01-02T03:48:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Munishk](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Munishk](https://discuss.ipfs.tech/u/Munishk)\
**Post date:** [January 2, 2019, 3:48am UTC](https://discuss.ipfs.tech/t/cant-access-file-using-http-gateway/4582/1 "2019-01-02T03:48:01Z")

</div>

I ran ipfs daemon and added simple text file with contents as SAMPLE CONTENTS IN THIS IPFS FILE. Generated hash is QmYgjkSxZUYtEezqp8YHDnzXHAoaT6yjshjc68PSdUnrMr. Why can’t I access this file through this address in browser [http://gateway.ipfs.io/ipfs/QmYgjkSxZUYtEezqp8YHDnzXHAoaT6yjshjc68PSdUnrMr](http://gateway.ipfs.io/ipfs/QmYgjkSxZUYtEezqp8YHDnzXHAoaT6yjshjc68PSdUnrMr)

I can easily see in my browser when I type in address [http://localhost:8080/ipfs/QmYgjkSxZUYtEezqp8YHDnzXHAoaT6yjshjc68PSdUnrMr](http://localhost:8080/ipfs/QmYgjkSxZUYtEezqp8YHDnzXHAoaT6yjshjc68PSdUnrMr)

Both daemon and ipfs version installed on my machine are 0.4.18. What wrong I am doing here?

---

<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:** [January 2, 2019, 8:13am UTC](https://discuss.ipfs.tech/t/cant-access-file-using-http-gateway/4582/2 "2019-01-02T08:13:07Z")

</div>

Is this topic similar? [Problem acessing my own files through the public gateway](https://discuss.ipfs.tech/t/problem-acessing-my-own-files-through-the-public-gateway/4563/4)

Let m know I’d connecting directly solves the case!

---

<div class="post-metadata">

**Author:** ![Munishk](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Munishk](https://discuss.ipfs.tech/u/Munishk)\
**Post date:** [January 2, 2019, 10:48am UTC](https://discuss.ipfs.tech/t/cant-access-file-using-http-gateway/4582/3 "2019-01-02T10:48:41Z")

</div>

Yes. I just posted a question in other thread. Will appreciate your help.
