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

Using -h localhost not connect #49

Open
cesarjorgemartinez opened this issue Dec 14, 2021 · 2 comments
Open

Using -h localhost not connect #49

cesarjorgemartinez opened this issue Dec 14, 2021 · 2 comments

Comments

@cesarjorgemartinez
Copy link

Show:

2021-12-14 12:34:17 DEBUG Debug level is: 3.
2021-12-14 12:34:17 DEBUG Network timeout is: 5 seconds.
2021-12-14 12:34:17 DEBUG Trying ::1...
2021-12-14 12:34:17 DEBUG Connecting...
2021-12-14 12:34:17 DEBUG Sending CONNECT packet...
2021-12-14 12:34:17 DEBUG Sending 24 bytes. Type=CONNECT on Socket: 3.
2021-12-14 12:34:17 DEBUG waiting for packet...
recv failed: Connection refused

@njh
Copy link
Owner

njh commented Dec 20, 2021

Hi,

It looks like 'localhost' is only resolving to ::1 (IPv6) on your machine.
Is your MQTT-SN broker only listening on IPv4?

Can you try connecting to 127.0.0.1 instead?

@cesarjorgemartinez
Copy link
Author

cesarjorgemartinez commented Dec 20, 2021 via email

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

2 participants