diff --git a/framework_crates/bones_framework/src/networking/lan.rs b/framework_crates/bones_framework/src/networking/lan.rs index c961b7f67d..f67039a380 100644 --- a/framework_crates/bones_framework/src/networking/lan.rs +++ b/framework_crates/bones_framework/src/networking/lan.rs @@ -227,7 +227,11 @@ pub async fn prepare_to_host<'a>( let create_service_info = || async { info!("New service hosting"); let ep = get_network_endpoint().await; - let my_addr = ep.node_addr().await.expect("network endpoint dead"); + let mut my_addr = ep.node_addr().await.expect("network endpoint dead"); + my_addr + .info + .direct_addresses + .retain(std::net::SocketAddr::is_ipv4); let port = my_addr.info.direct_addresses.first().unwrap().port(); let mut props = std::collections::HashMap::default(); let addr_encoded = hex::encode(postcard::to_stdvec(&my_addr).unwrap());