Fundamentals 8 min read

Master Windows 10 Network Troubleshooting: 12 Essential Command-Line Tools

Learn how to quickly open the Command Prompt on Windows 10 and use twelve core networking commands—Ping, IPConfig, Getmac, HostName, NSLookup, Tracert, Netstat, Arp, PathPing, SystemInfo, Nbtstat, and Netsh—to diagnose and resolve connectivity issues.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Master Windows 10 Network Troubleshooting: 12 Essential Command-Line Tools

1. Ping

The Ping command tests the reachability of a network device by sending four ICMP echo requests; lack of replies indicates a connectivity problem. ping [host] Replace [host] with a hostname or IP address such as google.com or techrepublic.com.

Ping example
Ping example

2. IPConfig

IPConfig displays the basic IP configuration of each network adapter, including IPv4/IPv6 addresses, default gateway, and subnet mask. Adding the /all switch reveals DNS servers and lease details.

ipconfig

3. Getmac

Getmac returns the MAC (Media Access Control) address of each network interface, which can be used to identify or restrict devices on a network.

getmac

4. HostName

Hostname shows the current computer name that the system uses to identify itself on the local network.

hostname
Hostname output
Hostname output

5. NSLookup

NSLookup queries the DNS server configured on the PC to resolve domain names to IP addresses, useful for diagnosing DNS issues.

nslookup
NSLookup example
NSLookup example

6. Tracert

Tracert traces the route packets take to a destination, displaying each hop’s IP address and latency, which helps locate where delays occur.

tracert [host]
Tracert output
Tracert output

7. Netstat

Netstat lists active TCP connections, listening ports, Ethernet statistics, IP routing tables, and IPv4/IPv6 statistics, aiding in network problem diagnosis.

netstat

8. Arp

Arp shows the ARP cache entries that map IP addresses to physical MAC addresses. The common /a switch displays all entries.

arp /a

9. PathPing

PathPing combines Ping and Tracert, providing detailed latency and packet loss statistics for each hop between source and destination.

pathping [host]
PathPing example
PathPing example

10. SystemInfo

SystemInfo provides a comprehensive list of system configuration details, including OS version, hostname, product ID, CPU type and count, RAM, network adapter info, and installed updates.

systeminfo

11. Nbtstat

Nbtstat displays NetBIOS over TCP/IP statistics, name tables, and current TCP/IP connections, useful for diagnosing NetBIOS name resolution problems.

nbtstat

12. Netsh

Netsh (Network Shell) is a versatile network management tool that can display or modify network configuration, manage interfaces, configure firewall settings, set wireless profiles, and troubleshoot connections via an interactive shell.

netsh
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

pingcommand-lineWindowsipconfig
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.