Skip to main content
HandyWeb

Show Network Settings with nw

Build the nw network show command to see the network cards, routes, DNS servers, and proxy of your own device. Useful before you report a network problem.

Show this device's network (network show)

Shows the network interfaces, routes, DNS servers, and proxies of this device. It only reads.

How to read the result

  • The output has the addresses of your device. Remove them before you paste the output in a report or a message.
  • Subcommands: interfaces, routes (not on Windows), dns-config, and proxy.

Exit codes

0: done. 2: wrong command.

Install nw

If you have Go, this one command is enough. It puts the file in $(go env GOPATH)/bin, usually ~/go/bin.

go install github.com/radestsam/nwrk/cmd/nw@latest

Other ways to install are on the nwrk.ir install page: ready-made builds for Linux, macOS, and Windows, and install scripts.

The install scripts download a script and run it. Read the script before you run it.

nwrk.ir install page (opens in a new tab)

This page only builds the command. You run nw yourself, on your own device.

How to Use It

  1. Copy the command.
  2. Run it in your terminal.
  3. Remove the addresses before you paste the output in a message or a report.

Questions and Answers

What does this command show?

The network interfaces, routes, DNS servers, and proxies of this device. It only reads. It changes nothing.

What are the subcommands?

interfaces, routes (not on Windows), dns-config, and proxy.

Good to Know

This page only builds the command. It runs no test. To run it, install nw on your own device. The commands come from the nwrk.ir docs for version 0.5.

Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)