# How to get a list of net interfaces and information about them?

**URL:** <https://ziggit.dev/t/how-to-get-a-list-of-net-interfaces-and-information-about-them/14489>\
**Category:** Help\
**Tags:** standard-library, networking\
**Created:** [March 2, 2026, 4:30pm UTC](https://ziggit.dev/t/how-to-get-a-list-of-net-interfaces-and-information-about-them/14489 "2026-03-02T16:30:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hizani](https://ziggit.dev/user_avatar/ziggit.dev/hizani/32/5818_2.png) [@hizani](https://ziggit.dev/u/hizani)\
**Post date:** [March 2, 2026, 4:30pm UTC](https://ziggit.dev/t/how-to-get-a-list-of-net-interfaces-and-information-about-them/14489/1 "2026-03-02T16:30:46Z")

</div>

Is there a way to get a list of network interfaces with std and is there any function to extract basic info about them (IP addresses, mtu)? I found only a [resolve](https://ziglang.org/documentation/master/std/#std.Io.net.Interface.Name.resolve) function that only gives you an index of an interface.

---

<div class="post-metadata">

**Author:** ![dee0xeed](https://ziggit.dev/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dee0xeed](https://ziggit.dev/u/dee0xeed)\
**Post date:** [March 7, 2026, 9:59pm UTC](https://ziggit.dev/t/how-to-get-a-list-of-net-interfaces-and-information-about-them/14489/2 "2026-03-07T21:59:32Z")

</div>

i’am using this

[nif.c](https://ziggit.dev/uploads/short-url/5G4mE2MWuuEkslB5eKi37BY1Hiu.c) (4.1 KB)

\* C, not Zig, sorry

- Linux , not Windo$, sorry No. 2
