ipfs-desktop icon indicating copy to clipboard operation
ipfs-desktop copied to clipboard

Error: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

Open mehdy-ghm opened this issue 3 years ago • 2 comments

👉️ Please describe what you were doing when this error happened.

Specifications

  • OS: win32
  • IPFS Desktop Version: 0.22.0
  • Electron Version: 19.0.8
  • Chrome Version: 102.0.5005.148

Error

Error: Initializing daemon...
Kubo version: 0.14.0
Repo version: 12
System version: amd64/windows
Golang version: go1.18.3
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/169.254.119.32/tcp/4001
Swarm listening on /ip4/169.254.160.204/tcp/4001
Swarm listening on /ip4/169.254.69.55/tcp/4001
Swarm listening on /ip4/169.254.80.163/tcp/4001
Swarm listening on /ip4/169.254.87.189/tcp/4001
Swarm listening on /ip4/192.168.100.16/tcp/4001
Swarm listening on /ip6/200:4c1b:80c3:a91c:69cb:cc40:2f4c:cd98/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/192.168.100.16/tcp/4001
Swarm announcing /ip4/5.238.205.214/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
Error: serveHTTPApi: manet.Listen(/ip4/127.0.0.1/tcp/5001) failed: listen tcp4 127.0.0.1:5001: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.


    at errorTemplate (C:\Users\MSI\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\migration-prompt.js:78:49)
    at Object.loadWindow (C:\Users\MSI\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\migration-prompt.js:115:26)
    at startI

mehdy-ghm avatar Jul 31 '22 13:07 mehdy-ghm

Seems to be a duplicate of https://github.com/ipfs/ipfs-desktop/issues/2216

@mehdy-ghm sounds like you already have something running on port 5001. This looks like a regression on Windows, since the Desktop app should be able to detect that and suggest running on a different port.

Does the problem go away when you reboot your machine? If not, are you able to identify what is running on port 5001? See how: https://github.com/ipfs/ipfs-desktop/issues/2216#issuecomment-1199189648

lidel avatar Aug 01 '22 16:08 lidel

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

github-actions[bot] avatar Aug 08 '22 00:08 github-actions[bot]

This issue was closed because it is missing author input.

github-actions[bot] avatar Aug 15 '22 00:08 github-actions[bot]