Ipfs: Can I use the webui from remote?

Created on 26 Aug 2017  路  5Comments  路  Source: ipfs/ipfs

Hi there. I installed and ran the ipfs on a VPS. And I change the config so that I can use it from remote. (Such as my own device).
My config is like that:

"Addresses": {
    "Swarm": [
      "/ip4/0.0.0.0/tcp/4001",
      "/ip6/::/tcp/4001"
    ],
    "API": "/ip4/0.0.0.0/tcp/5001",
    "Gateway": "/ip4/0.0.0.0/tcp/8080"
  }

I change the 127.0.0.1 to 0.0.0.0
So that I can use command to visit the IPFS on a VPS.
But when I try to visit the webui throughserverip:5001/webui, it shows nothing...
Can you tell me how to solve it? Or maybe it's not possible to use webui from remote?
THANKS~

Most helpful comment

Please don't open up the API port 5001 to the public -- it's a huge security risk. Use an SSH tunnel instead, e.g. ssh -L 5001:localhost:5001 user@serverip. This will give you a local port 5001 forwarded to the actual API port, but without exposing it to the public.

All 5 comments

Please don't open up the API port 5001 to the public -- it's a huge security risk. Use an SSH tunnel instead, e.g. ssh -L 5001:localhost:5001 user@serverip. This will give you a local port 5001 forwarded to the actual API port, but without exposing it to the public.

Closing this issue. If you still have more questions, please open a thread on https://discuss.ipfs.io/. Thanks!

I have the same problem. Thing is if we change from 127.0.0.1 to something like 192.168.1.10, we're opening it just to local network, and it's not much of a security risk. I see now issue is opened about this, was this solved at all - can we access webui from some other than local machine?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Miserlou picture Miserlou  路  6Comments

amiyatulu picture amiyatulu  路  3Comments

pyhedgehog picture pyhedgehog  路  11Comments

crazysoldier picture crazysoldier  路  7Comments

timthelion picture timthelion  路  28Comments