webrtc icon indicating copy to clipboard operation
webrtc copied to clipboard

Bug: DTLS dial_verify example produces a Destination unreachable (Port unreachable) error

Open andreastedile opened this issue 1 year ago • 1 comments

cargo run --example dial_verify -- --server 127.0.0.1:4444

[steddy@nowhere webrtc]$ cargo run --example dial_verify -- --server 127.0.0.1:4444
    Finished dev [unoptimized + debuginfo] target(s) in 0.33s
     Running `target/debug/examples/dial_verify --server '127.0.0.1:4444'`
/home/steddy/.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.8.6/src/poll.rs:532 [TRACE] 17:54:10.164832 - registering event source with poller: token=Token(0), interests=READABLE | WRITABLE
connecting 127.0.0.1:4444..
/home/steddy/.cargo/registry/src/github.com-1ecc6299db9ec823/rustls-0.19.1/src/anchors.rs:142 [DEBUG] 17:54:10.165347 - add_pem_file processed 1 valid and 0 invalid certs
dtls/src/handshaker.rs:202 [TRACE] 17:54:10.165596 - [handshake:client] Flight 1: Preparing
dtls/src/handshaker.rs:202 [TRACE] 17:54:10.165685 - [handshake:client] Flight 1: Sending
dtls/src/conn/mod.rs:540 [TRACE] 17:54:10.165806 - Send [handshake:client] -> ClientHello (epoch: 0, seq: 0)
dtls/src/handshaker.rs:202 [TRACE] 17:54:10.166043 - [handshake:client] Flight 1: Waiting
dtls/src/handshaker.rs:354 [TRACE] 17:54:11.167306 - [handshake:client] Flight 1 retransmit_timer
dtls/src/handshaker.rs:202 [TRACE] 17:54:11.167572 - [handshake:client] Flight 1: Sending
dtls/src/conn/mod.rs:540 [TRACE] 17:54:11.168152 - Send [handshake:client] -> ClientHello (epoch: 0, seq: 0)
dtls/src/conn/mod.rs:346 [TRACE] 17:54:11.169059 - client: read_and_buffer exit
/home/steddy/.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.8.6/src/poll.rs:663 [TRACE] 17:54:11.169363 - deregistering event source from poller
Error: Util(Io(IoError(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))

Wireshark: image

andreastedile avatar Mar 07 '23 16:03 andreastedile

By the way, I am using the fix of https://github.com/webrtc-rs/webrtc/pull/418 to make the example work.

andreastedile avatar Mar 07 '23 17:03 andreastedile