# Webui and gateway are not working

**URL:** <https://discuss.ipfs.tech/t/webui-and-gateway-are-not-working/3721>\
**Category:** Help\
**Created:** [August 25, 2018, 5:56pm UTC](https://discuss.ipfs.tech/t/webui-and-gateway-are-not-working/3721 "2018-08-25T17:56:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvw1954](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jvw1954/32/1264_2.png) [@jvw1954](https://discuss.ipfs.tech/u/jvw1954)\
**Post date:** [August 25, 2018, 5:56pm UTC](https://discuss.ipfs.tech/t/webui-and-gateway-are-not-working/3721/1 "2018-08-25T17:56:07Z")

</div>

I installed ipfs on my server, and changed in config the following:

```
"API": "/ip4/10.0.0.159/tcp/15001",
"Gateway": "/ip4/10.0.0.159/tcp/8080"

```

For i have no local browser in the server and port 5001 seems to be already in use.

The daemon starts  
“…  
API server listening on /ip4/10.0.0.159/tcp/15001  
Gateway (readonly) server listening on /ip4/10.0.0.159/tcp/8080  
Daemon is ready”

And there are several hundreds of swarm peers.

[http://10.0.0.159:15001/webui](http://10.0.0.159:15001/webui) gives an empty webui-page  
[http://10.0.0.159:8080](http://10.0.0.159:8080) gives “404 page not found”.  
IPFS Companion makes contact and seems working.

I cannot find a solution in the docs. ☹

---

<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:** [August 25, 2018, 9:03pm UTC](https://discuss.ipfs.tech/t/webui-and-gateway-are-not-working/3721/2 "2018-08-25T21:03:24Z")

</div>

> [@jvw1954](#):
>
> [http://10.0.0.159:8080](http://10.0.0.159:8080)

Try to resolve anything: try downloading or checking a simple IPNS website:

[http://10.0.0.159:8080/ipns/ipfs.io/](http://10.0.0.159:8080/ipns/ipfs.io/)

I guess that the reason could be related to the IPFS node not being able to connect to the rest of the world, as the WebUI is shared in IPFS as well 😃 The 404 on the gateway is normal. You need to use `/ipfs/` or `/ipns/` 🙂

---

<div class="post-metadata">

**Author:** ![jvw1954](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jvw1954/32/1264_2.png) [@jvw1954](https://discuss.ipfs.tech/u/jvw1954)\
**Post date:** [August 28, 2018, 9:45pm UTC](https://discuss.ipfs.tech/t/webui-and-gateway-are-not-working/3721/3 "2018-08-28T21:45:58Z")

</div>

> The 404 on the gateway is normal. You need to use /ipfs/ or /ipns/  
> Thank you, the gateway works indeed.

The user interface on [http://10.0.0.159:15001/webui](http://10.0.0.159:15001/webui) reconnects to [http://10.0.0.159:8080/ipfs/QmQLXH.../#/home](http://10.0.0.159:8080/ipfs/QmQLXH.../#/home). When I close IPFS Companion the user interface stays also empty: “Failed to determine local IPFS version. Is the IPFS daemon running?”, “Failed to determine local IPFS version. Is the IPFS daemon running?”. Is this a bug or a configuration error?

---

<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:** [August 29, 2018, 4:45am UTC](https://discuss.ipfs.tech/t/webui-and-gateway-are-not-working/3721/4 "2018-08-29T04:45:47Z")

</div>

Try not to change the API port, I guess that the UI is expecting the API to run on `5001`.

---

<div class="post-metadata">

**Author:** ![jvw1954](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jvw1954/32/1264_2.png) [@jvw1954](https://discuss.ipfs.tech/u/jvw1954)\
**Post date:** [August 29, 2018, 9:13pm UTC](https://discuss.ipfs.tech/t/webui-and-gateway-are-not-working/3721/5 "2018-08-29T21:13:56Z")

</div>

openjdk uses port 5001!!!

jaap@custard:~$ sudo netstat -tulpn | grep 5001  
tcp 0 0 10.0.0.159:15001 0.0.0.0:\* LISTEN 27368/ipfs  
tcp 0 0 0.0.0.0:5001 0.0.0.0:\* LISTEN 21847/java  
udp 0 0 0.0.0.0:5001 0.0.0.0:\* 21847/java  
jaap@custard:~$ sudo ls -l /proc/21847/exe  
lrwxrwxrwx 1 root root 0 Aug 22 21:40 /proc/21847/exe -\> /usr/lib/jvm/java-9-openjdk-amd64/bin/java  
jaap@custard:~$

---

<div class="post-metadata">

**Author:** ![jvw1954](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jvw1954/32/1264_2.png) [@jvw1954](https://discuss.ipfs.tech/u/jvw1954)\
**Post date:** [August 29, 2018, 9:17pm UTC](https://discuss.ipfs.tech/t/webui-and-gateway-are-not-working/3721/6 "2018-08-29T21:17:23Z")

</div>

ah, traccar is using that port. I have to fix that.
