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

Inconsistent binding on Windows host #512

Open
pdematteis opened this issue Jul 10, 2024 · 0 comments
Open

Inconsistent binding on Windows host #512

pdematteis opened this issue Jul 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pdematteis
Copy link

Describe the bug

In a Zenoh application, if no listen endpoint is specified, both IPv4 and IPv6 addresses should be used and available for peers to connect to.
Running the z_scout demo, it would report something like:
Hello { zid: Some(B063BC6F09C357450E94F8AEA620E83B), whatami: "Peer", locators: ["tcp/[fe80::55e6:c657:fa8a:d9ee]:64033", "tcp/192.168.1.51:64033"] }

Everything looks good right now, but when trying to connect, only IPv6 locators work.
Checking the TCP/UDP ports status with TCPView does confirm that only IPv6 addresses are used.
image

This happens only on Windows hosts, while Linux hosts work as expected.
It is true for both my own applications and for the precompiled zenohd router.

If the same locators are explicitly added to the session JSON configuration, like for example with:
{mode: "peer", listen: {endpoints: ["tcp/[fe80::55e6:c657:fa8a:d9ee]:64033", "tcp/192.168.1.51:64033"]}}
both IPv4 and IPv6 addresses work
image

Using JSON and specifying any address for both IPv4 and IPv6 also work:
{mode: "peer", listen: {endpoints: ["tcp/0.0.0.0:0", "tcp/[::]:0"]}}
image

To reproduce

  1. Start zenohd on Windows and take note of the available locators
  2. Use a client mode publisher and try to connect to all of them one by one
  3. Do the same on Linux

System info

  • Windows 11
  • Debian 11
@pdematteis pdematteis added the bug Something isn't working label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant