Windows Networking Command Cheat Sheet

Windows contains numerous built-in commands for networking. These utilities and tools will help you discover problems with your network, as well as help you improve performance and monitor what’s going on.

Ping – Ping is probably the most familiar of networking command line tools. With it you’re able to send an echo request to a device locally, or on the Internet, and receive a reply.

Netstat – Stands for Network Statistics, this command will display connection information, routing tables and so on. Entering the command will display what’s going on while you use the network and Internet. Use netstat -e for interface stats.

Arp – Stands for Address Resolution Protocol displays and modifies entries in the ARP cache, which contains one or more tables that are used to store IP addresses and their resolved Ethernet or Token Ring physical addresses.

NbtStat – The nbtstat command is a diagnostic tool for NetBIOS over TCP/IP. Its primary design is to help troubleshoot NetBIOS name resolution problems. It’ll display the human-friendly names of devices on the network along with their IP addresses.

Hostname – If you’re struggling to find the name of a Windows computer you’ve got on your network, simply enter the hostname command and it’ll display the computer’s local name.

Tracert – Stands for Trace Route will examine the path to a remote computer, either locally or on the Internet. For example, entering tracert will display the hops taken over networking devices to get to one of the Google servers.

Ipconfig – Probably one of the most used networking command in Windows. Ipconfig will display information on the local computer’s network interfaces, such as IP addresses (both IPv4 and IPv6), Hostname, gateway and so on.

Nslookup – This tool can be used to look up the and diagnose the Domain Name System (DNS) of a location on the local network or Internet.

Route – The Windows Route command allows you to view the device’s routing tables. To do so, simply type Route Print. This will print the network interfaces, IPv4 and IPv6 route tables.

Pathping – This is a handy command that combines the best elements of Ping and Tracert. It will display the latency and packet loss between one computer and another (either locally or on the Internet), and after 300 seconds display a detailed report.

Getmac – Every network interface has a unique Media Access Code assigned to it. Some routers are able to limit connection to the network by only allowing user-entered MAC addresses in. You can get the MAC address of a windows computer by entering getmac.

Netsh – This is a complex command that when entered will put you into a different shell, the Network Shell (netsh). It’s capable of displaying and configuring information regarding a computer’s networking setup.

Telnet – This is a command that can be used to connect to another computer, or manage a router or switch. You can send and receive files, send command and much more. With Telnet you’re also able to connect to active Bulletin Board Systems. For example, enter: telnet


Find more guides like this in…

Russ Ware

Russ has been testing, reviewing and writing guides for tech since the heady days of Windows 95 and the Sega Saturn. A self-confessed (and proud) geek about all things tech, if it has LED's, a screen, beeps or has source code, Russ will want to master it (and very likely take it apart to see how it works...)

Related Articles

Back to top button