Open tuhalf opened 2 years ago
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>
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 ". 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.