zig-network icon indicating copy to clipboard operation
zig-network copied to clipboard

List IP addresses

Open G3UKB opened this issue 1 year ago • 2 comments

Would it be possible to add a function to get a list of local IP addresses?

G3UKB avatar Mar 30 '23 16:03 G3UKB

Yes, but this is a huge amount of work, as there's not just a "list of local ip", but a "list of local ip per network adapter", so we also need adapter listing

ikskuh avatar Mar 30 '23 17:03 ikskuh

There is a Python extension module netifaces. The C code in there does the job. It's probably a separate project though.

G3UKB avatar Mar 30 '23 21:03 G3UKB