Facing a probelm when starting daemon

Hello everyone,im facing a daemon problem when I trying to start a daemon…
Please help, Thankyou~

=================================================================

Initializing daemon…
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/169.254.156.148/tcp/4001
Swarm listening on /ip4/169.254.60.49/tcp/4001
Swarm listening on /ip4/169.254.91.60/tcp/4001
Swarm listening on /ip4/192.168.0.102/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit/ipfs/QmWT3JMgXgG2fmERPt4EjS1hiRokTXbGJ9ftdjHRVf2RKE
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/169.254.156.148/tcp/4001
Swarm announcing /ip4/169.254.60.49/tcp/4001
Swarm announcing /ip4/169.254.91.60/tcp/4001
Swarm announcing /ip4/192.168.0.102/tcp/4001
Swarm announcing /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: An attempt was made to access a socket in a way forbidden by its access permissions.

=======================================================================

Are you using Windows?

I’m guessing something else is already using port 8080. You could try changing port 8080 in the IPFS config to something else that you’re sure isn’t already in use on your machine.

1 Like

Thankyou! after change the port number the problem solved~

hi, i have the smae problem while using btfs, how to chage the port.
i am new to this
thank you

You must change the Addresses.Gateway key in the config.

Change the port, yours is likely /ip4/127.0.0.1/tcp/8080 currently, changing the 8080 past tcp will change the port, example /ip4/127.0.0.1/tcp/8081.

You should find the config at ~/.ipfs/config (on linux, no idea for windows).