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

UDP Protocol Doesn't work #98

Open
tuhalf opened this issue Feb 11, 2022 · 1 comment
Open

UDP Protocol Doesn't work #98

tuhalf opened this issue Feb 11, 2022 · 1 comment

Comments

@tuhalf
Copy link
Contributor

tuhalf commented Feb 11, 2022

Binding to an UDP port doesn't work. I have tried with diffrent systems and couldn't make it work. To test, I create a UDP Listener, Publish that port witf "diode publish -public " and on the other machine I bind the port with "diode -bind port:address:port". When I try to send a packet to localhost with netcat, Can't receive any packets. When I try the same with TCP, message reaches the destinition without problem. I think there is a bug with UDP port.

@zachongit
Copy link
Contributor

I am having UDP connection issues as well. Below are some test results.


Running the debug_udp branch and following @dominicletz's instructions:

Setup Server

./diode -debug publish -public 4444:4444:udp &
nc -ulk 4444

Setup Client

export SERVER="<diode_address>"
diode -debug -dbpath=./test.db -bind 5555:$SERVER:4444:udp &
nc -u localhost 5555

Log:
DEBUG forwardUDP for 127.0.0.1:36826 returned <nil>

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