Found example with sending datagram here:
[https://nim-lang.org/docs/net.html](https://nim-lang.org/docs/net.html)
Doing the same:
import net
var s = newSocket()
echo $s.sendTo("192.168.1.2", Port(50001), "Hello")
Run
I have bound port on this addesss:
$ sudo netstat -tuplen | grep 50001
udp 0 0 192.168.1.2:50001 0.0.0.0:*
1000 32716323 4938/france2
Run
Getting exception:
Traceback (most recent call last)
proto.nim(33) proto
net.nim(1444) sendTo
net.nim(1428) sendTo
SIGPIPE: Pipe closed.
Run
I can send packets to this port using other languages. What's going wrong?