Need help with netaddr?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

588 Stars 40 Forks BSD 3-Clause "New" or "Revised" License 248 Commits 21 Opened issues


Network address types

Services available


Need anything else?

Contributors list

netaddr Test Status Go Reference


This is a package containing a new IP address type for Go.

See its docs:


This package is mature, optimized, and used heavily in production at Tailscale. However, API stability is not yet guaranteed.

netaddr is intended to be a core, low-level package. We take code review, testing, dependencies, and performance seriously, similar to Go's standard library or the repos.


See for a long blog post about why we made a new IP address package.

Other links:

  • ("net: reconsider representation of IP")
  • ("net: ParseIP should return an error, like other Parse functions")
  • ("net: Unable to reliably distinguish IPv4-mapped-IPv6 addresses from regular IPv4 addresses")
  • merges net.IPAddr and net.IP (which the Go net package is a little torn between for legacy reasons)


In addition to regular Go tests, netaddr uses fuzzing. The corpus is stored separately, in a submodule, to minimize the impact on everyone else.

To use:

$ git submodule update --init
$ go get -u
$ go-fuzz-build && go-fuzz

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.