Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to IPv6 address does not work #41

Open
JKRhb opened this issue Apr 17, 2022 · 0 comments
Open

Connecting to IPv6 address does not work #41

JKRhb opened this issue Apr 17, 2022 · 0 comments

Comments

@JKRhb
Copy link

JKRhb commented Apr 17, 2022

When trying to connect to a peer using an IPv6 address like so

dtls.connect({
    type: 'udp6',
    remotePort: 5684,
    remoteAddress: 'fe80::260a:c4ff:feea:20f0'
});

I get the following error:

node:events:356
      throw er; // Unhandled 'error' event
      ^

Error: bind EINVAL 0.0.0.0
    at node:dgram:341:20
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on Socket instance at:
    at node:dgram:343:14
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4071,
  code: 'EINVAL',
  syscall: 'bind',
  address: '0.0.0.0'
}

It seems to me as if the library does not bind to :: in the IPv6 case but uses IPv4's 0.0.0.0 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant