gateway icon indicating copy to clipboard operation
gateway copied to clipboard

A golang library for discovering the address of a LAN gateway.

gateway

A simple library for discovering the IP address of the default gateway.

Build Status

Provides implementations for:

  • FreeBSD
  • Linux
  • OS X (Darwin)
  • Solaris
  • Windows

Other platforms use an implementation that always returns an error.

Pull requests for other OSs happily considered!