3
bc@bc-HP-Pro-3090-Microtower-PC:~/supply-chain$ ipfs daemon --writable=true
Initializing daemon...
Adjusting current ulimit to 2048...
Successfully raised file descriptor limit to 2048.
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/172.17.0.1/tcp/4001
Swarm listening on /ip4/172.18.0.1/tcp/4001
Swarm listening on /ip4/172.20.0.1/tcp/4001
Swarm listening on /ip4/172.21.0.1/tcp/4001
Swarm listening on /ip4/192.168.1.78/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
Error: serveHTTPGateway: manet.Listen(/ip4/127.0.0.1/tcp/8080) failed: listen tcp4 127.0.0.1:8080: bind: address already in use
Aniket
  • 3,545
  • 2
  • 20
  • 42

2 Answers2

4

IPFS daemon exposes by default three services on three different ports:

The exception Error: serveHTTPGateway: manet.Listen(/ip4/127.0.0.1/tcp/8080) failed: listen tcp4 127.0.0.1:8080: bind: address already in use means that IPFS daemon can't start the gateway because you already have something running on this port.

To find what program runs on the port 8080 an stop it, you can execute the following command:

$ netstat -a | grep 8080 
Greg Jeanmart
  • 7,207
  • 2
  • 19
  • 35
0

If you cant stop the program running on port 8080 or you dont want to stop, then go in your home directory, then in .ipfs folder and change the port number in config file.

user61071
  • 1
  • 1