ip_address_list
Version, currently 0.1.12 versions
- 0.1.1latestSep 20, 2024
- 0.1.0not indexedJun 23, 2026
github.com/mamantoha/ip_address_list
Retrieve the IP addresses (both IPv4 and IPv6) associated with the network interfaces on a system
1 stars
2 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
ip_address_list:
github: mamantoha/ip_address_list
version: ~> 0.1.1Then run:
shards installshard.yml
- Crystal
>= 1.0.0- License
- MIT
- Author
- Anton Maminov
Dependencies
This version declares no dependencies.
README
Crystal IP Address List Library
This library provides functionality to retrieve the IP addresses (both IPv4 and IPv6) associated with the network interfaces on a system. It is a port of Ruby's ip_address_list method from the Socket class.
Features
- Retrieve both IPv4 and IPv6 addresses from network interfaces.
- Supports Windows, Linux, and macOS.
- Easy-to-use interface, returning a list of
Socket::IPAddressobjects.
Installation
-
Add the dependency to your
shard.yml:dependencies: ip_address_list: github: mamantoha/ip_address_list -
Run
shards install
Usage
require "ip_address_list"
p! Socket.ip_address_list
# => [Socket::IPAddress(127.0.0.1:0),
# Socket::IPAddress(192.168.31.229:0),
# Socket::IPAddress(172.17.0.1:0),
# Socket::IPAddress([::1]:0), Socket::IPAddress([fdcc:60fc:349d:2fcf:7e6:1635:e1a7:1fb6]:0),
# Socket::IPAddress([fe80::c8e3:857d:43c8:cec3]:0)
# ...]
Contributing
- Fork it (https://github.com/mamantoha/ip_address_list/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Anton Maminov - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.1- Tagged
- Sep 20, 2024
- Commit
ed5902803955- Crystal
>= 1.0.0- Indexed
- yes
Dependents
Repository
github.com/mamantoha/ip_address_list
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 24, 2026
- Synced
- Sep 24, 2026
- Versions
- 2