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.
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
- Copy the command.
- Run it in your terminal.
- 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.
Related Tools
- Check Internet Access in Iran with nwBuild the nw doctor command for Iran. It checks your device, domestic sites, and foreign sites, and gives one clear result.
- Private and Reserved IP RangesSee whether an IPv4 or IPv6 address is private, loopback, link-local, CGNAT, for documentation, or public, and read the IANA special ranges.
- nw Command BuilderBuild the exact nw command to test DNS, TCP, TLS, or HTTP, trace a path, or find why a connection fails. Learn how to read the result and the exit code.
Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)