The demo server and client are using DTLS over a TCP connection session!
This is NOT a recommended way of using DTLS*_method() from OpenSSL.
DTLS*_method()
The following projects use DTLS over UDP correctly: