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

MMDVM.ini: [DMR Network] LocalAddress setting for Direct connection #745

Open
jg1uaa opened this issue Mar 20, 2022 · 2 comments
Open

MMDVM.ini: [DMR Network] LocalAddress setting for Direct connection #745

jg1uaa opened this issue Mar 20, 2022 · 2 comments

Comments

@jg1uaa
Copy link
Contributor

jg1uaa commented Mar 20, 2022

Today I rewrite my MMDVM.ini and I found this problem.

I: 2022-03-20 12:18:24.336 Started the DMR Id lookup reload thread
I: 2022-03-20 12:18:34.332 Opening UDP port on 62032
E: 2022-03-20 12:18:34.335 Error returned from sendto, err: 22
E: 2022-03-20 12:18:34.336 DMR, Socket has failed when writing data to the master, retrying connection
M: 2022-03-20 12:18:34.337 Closing DMR Network
M: 2022-03-20 12:18:34.539 Opening DMR Network
I: 2022-03-20 12:18:44.333 Opening UDP port on 62032
E: 2022-03-20 12:18:44.334 Error returned from sendto, err: 22
E: 2022-03-20 12:18:44.335 DMR, Socket has failed when writing data to the master, retrying connection
M: 2022-03-20 12:18:44.336 Closing DMR Network
M: 2022-03-20 12:18:44.355 Opening DMR Network

write() for UDP socket returns EINVAL on Linux(Debian-11.2/amd64), this is occured "Type=Direct" and "LocalAddress=127.0.0.1" in [DMR Network] section.
on OpenBSD, there is no error but not working.

Solution: set LocalAddress=0.0.0.0 or delete LocalAddress entry when Type=Direct.
maybe this is not bug, but need to add comment to MMDVM.ini.

Reference: nodejs/node#29047

@iddq
Copy link

iddq commented Mar 24, 2022

LocalAddress cannot be 127.0.0.1 if the remote address is non-local. :)

@jg1uaa
Copy link
Contributor Author

jg1uaa commented Mar 27, 2022

Experts know such a thing, but non-expert strays by misconfiguration.
It will be a good help that adding "# LocalAddress should be commented out when Type=Direct" message to MMDVM.ini.

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