Get your local ip address in Rust, using `UdpSocket` to get local ip address(not `network interface` or `ifconfig`), and won't `panic`.
API Docs: [https://docs.rs/local_ipaddress](https://docs.rs/local_ipaddress)
Add this to your Cargo.toml:
```
[dependencies]
local_ipaddress = "0.1.3"
```
```rust
use local_ipaddress;
fn main() {
}
```
It works fine with both `Windows` and `Linux`.
MIT