use rich_sdl2_rust::{net::Net, Sdl}; fn main() { let sdl = Sdl::new(); let net = Net::new(&sdl); let local_addresses = net.local_addresses(); println!("Found {} local addresses", local_addresses.len()); for (i, addr) in local_addresses.into_iter().enumerate() { println!("{}: {}", i + 1, addr); } }