diodechain / diode_client

Diode client written in GO that runs the Blockquick™ algorithm and a socks server to transmit data through diodechain.
https://diode.io/download
Other
65 stars 23 forks source link

UDP Protocol Doesn't work #98

Open tuhalf opened 2 years ago

tuhalf commented 2 years ago

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.

zachongit commented 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>