Skip to content

Cannot use the same port for quic-v1 ip4/ip6 listen addresses #28

Closed
@ShookLyngs

Description

@ShookLyngs

Currently when multiple quic-v1 multiaddrs listen to the same port:

createLibp2p({
  addresses: {
    listen: [
      `/ip4/0.0.0.0/udp/13000/quic-v1`,
      `/ip6/::/udp/13000/quic-v1`,
    ]
  }
})

The following error occurs:

libp2p:error An error occurred starting libp2p UnsupportedListenAddressesError: Some configured addresses failed to be listened on, you may need to remove one or more listen addresses from your configuration or set `transportManager.faultTolerance` to NO_FATAL:
    /ip6/::/udp/13000/quic-v1: Error: Address already in use (os error 98)
    at QuicListener.listen (file:///app/node_modules/.pnpm/@[email protected]/node_modules/@chainsafe/libp2p-quic/dist/src/listener.js:53:26)

What is the proper configuration if I wish to set a static/custom port for quic-v1 multiaddrs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions