Ilija Matoski

    ← Projects

    Dormant

    netprivate

    A small library to test if an IP address is in the private or public range for both IPv4 and IPv6

    Language
    Go
    Started
    Last commit

    A simple library that helps you check if an IP address is in the private defined range of the network.

    The library works with:

    • IPv4
    • IPv6
    if netprivate.Is(net.ParseIP("127.0.0.1")) {
    // ...
    }

    More information can be found on the GitHub repository.