https://github.com/oskaritimperi/ifaddr-nim
Nim library to enumerate all network interfaces
https://github.com/oskaritimperi/ifaddr-nim
ip-address network nim
Last synced: 6 months ago
JSON representation
Nim library to enumerate all network interfaces
- Host: GitHub
- URL: https://github.com/oskaritimperi/ifaddr-nim
- Owner: oskaritimperi
- License: mit
- Created: 2020-02-19T20:15:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-19T20:15:43.000Z (over 5 years ago)
- Last Synced: 2025-02-16T02:41:39.573Z (8 months ago)
- Topics: ip-address, network, nim
- Language: Nim
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ifaddr - Enumerate IP addresses on the local network adapters
This is a Nim port of a Python package of the same name. See the original [here](https://github.com/pydron/ifaddr).
Check the example code in `tests/test1.nim`. It should output something like the following:
```
IPs of network adapter lo
127.0.0.1/8
00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01/128
IPs of network adapter wlp2s0
192.168.0.101/24
FE:80:00:00:00:00:00:00:65:93:59:F2:33:F0:AB:33/64
```