DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk6 min

Network Diagnostic Commands: A Practical Guide to Connectivity Troubleshooting

A practical guide to choosing network diagnostic commands and interpreting what their results do—and do not—prove.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use ipconfig to inspect a Windows device’s network settings, ping to test ICMP reachability, nslookup to check DNS, and tracert or mtr to examine responding hops along a route. These commands answer different questions: no single result proves that an entire network or application is healthy.

Which command should you use?

Command Question it helps answer How to interpret it
ipconfig (Windows) What IP configuration and default gateway does Windows show? Use the output to identify the active adapter and its gateway. Microsoft’s Wi-Fi guidance uses ipconfig for this check: Fix Wi-Fi connection issues in Windows.
ping <host> Does the target return ICMP echo replies from this device? A reply confirms a response to that ICMP probe, not application health. Silence can mean filtering as well as a connectivity problem.
nslookup <name> Can DNS resolve this name, and does the selected DNS server respond? Test the server and the failing name separately when diagnosing DNS.
tracert <host> (Windows) Which intermediate routers return responses to Windows route-tracing probes? Some routers do not respond to expired probes, so the output may contain gaps.
mtr <host> (Linux systems with MTR installed) What response rates and timings appear across repeated probes along a route? MTR combines traceroute-like and ping-like behavior. Options and availability vary by distribution and version.
ipconfig /displaydns and ipconfig /flushdns (Windows) What DNS entries are cached locally, and can the cache be cleared? Use these when a stale or cached response is a plausible cause of a name-resolution problem.

How to troubleshoot a connection in a useful order

Start by noting what fails and how widely it fails: one website or service, one device, or several devices. This is a practical sequence, not a universal diagnostic standard. Run commands from the affected device so their results reflect its network path.

As an Amazon Associate I earn from qualifying purchases.

  1. Inspect local settings (Windows): open Command Prompt or PowerShell and run ipconfig. Find the adapter in use and note its IP address and default gateway. If the adapter is disconnected or has no usable configuration, investigate that local connection before interpreting remote tests.
  2. Test the gateway: run ping <default-gateway-address>, substituting the gateway shown by ipconfig. A response shows that the gateway answered ICMP from this device. No response is inconclusive because ICMP may be blocked.
  3. Test a remote IP address: if appropriate, run ping <known-remote-IP>. This tests ICMP reachability without first relying on a DNS lookup. Choose a destination expected to answer ICMP; some hosts and networks filter it.
  4. Check name resolution separately: run nslookup <name>, replacing <name> with the hostname that fails. If needed, query a specific DNS server with nslookup <name> <DNS-server-address>. Compare whether the server responds and whether it returns an answer for the failing name. Microsoft’s workflow separates testing DNS-server connectivity from testing resolution of a record: Troubleshooting DNS clients.
  5. Inspect the route if the remote destination is unreachable or slow: on Windows, run tracert <host>. On a system where MTR is installed, run mtr <host>. These show responses from probes along the path; they do not guarantee that every router will be visible.
  6. Consider the Windows DNS cache: run ipconfig /displaydns to inspect cached entries. If a stale cache is a plausible cause, ipconfig /flushdns clears it; then retry the lookup. Use ipconfig /renew only when renewing a dynamically assigned address is appropriate, not as a generic fix for every connectivity fault.

What each command can—and cannot—tell you

ipconfig: inspect the Windows device’s settings

ipconfig reports Windows IP configuration. For a basic check, identify the active adapter and default gateway, then use the gateway address as a target for a local reachability test. Microsoft’s instructions use the command to find the gateway when checking Wi-Fi connectivity: Fix Wi-Fi connection issues in Windows.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ping: test ICMP response, not a complete service

ping <host> sends ICMP echo probes and reports whether replies arrive. A successful reply shows that the target (or a device responding on its behalf) answered those probes from your vantage point. It does not establish that a web page, application port, login, or other service works.

#1 Best Overall
Klein Tools VDV526-200 LAN Scout Jr Cable Tester Ethernet Cable Tester Kit
  • VERSATILE CABLE TESTING: Cable tester for data (RJ45) terminated cables and patch cords, ensuring comprehensive testing capabilities
  • LARGE BACKLIT LCD: Backlit LCD display enables easy reading of pin-to-pin wiremap results, even in low-lit areas
  • COMPREHENSIVE FAULT DETECTION: Test for Open, Short, Miswire, Split-Pair faults, Cross-over, and Shield, providing thorough fault detection
  • INTUITIVE USER INTERFACE: User-friendly interface with three buttons and simple, easy-to-identify test responses, ensuring a smooth testing experience
  • MULTIPLE TONE GENERATOR STYLES: Tone on a single wire, wire pair, or all 8 conductor wires using the multiple style tone generator (solid/warble); requires probe Cat. No. VDV500-123 (sold separately)

A failed ping is not proof that the host is offline. Firewalls or network policy can block ICMP; Microsoft notes that ICMP must be allowed through the firewall for this test to work. Use other evidence, such as DNS results or a route trace, before drawing a conclusion: Troubleshooting DNS clients.

nslookup: isolate DNS resolution

nslookup <name> asks a DNS server to resolve a hostname. It helps distinguish a name-resolution failure from a problem reaching an IP address, but a successful answer does not prove that the destination’s application is running or reachable on the required service.

Rank #2
Klein Tools VDV501-851 Scout Pro 3 Tester Starter Set Cable Tester
  • VERSATILE CABLE TESTING: Cable tester tests voice (RJ11/12), data (RJ45), and video (coax F-connector) terminated cables, providing clear results for comprehensive testing on unenergized Ethernet cables (not designed to test PoE)
  • EXTENDED CABLE LENGTH MEASUREMENT: Measure cable length up to 2000 feet (610 m), allowing for precise cable length determination
  • COMPREHENSIVE FAULT DETECTION: Test for Open, Short, Miswire, or Split-Pair faults, ensuring thorough fault detection and identification
  • BACKLIT LCD DISPLAY: Backlit LCD screen displays cable length, wiremap, cable ID, and test results, ensuring easy readability in various lighting conditions
  • EFFICIENT CABLE TRACING: Trace cables, wire pairs, and individual conductor wires using the multiple style tone generator (requires analog probe Cat. No. VDV500-123, sold separately), simplifying cable tracing tasks

If a lookup fails, test whether the DNS server responds and whether the particular failing name resolves. On Windows, ipconfig /displaydns shows cached DNS entries and ipconfig /flushdns clears the cache. Microsoft includes these checks in its DNS troubleshooting guidance, including cases involving cached negative responses: Troubleshooting DNS clients.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

tracert: inspect responding hops on Windows

Windows tracert <host> sends probes with incrementally increasing time-to-live (TTL) values. When a router returns a response as a probe expires, that hop can appear in the output. A router that silently drops expired probes may not appear, so an asterisk or missing hop is not by itself proof of a broken router or route. See Microsoft’s explanation of the command and its behavior: Use TRACERT to Troubleshoot TCP/IP Problems.

Rank #3
NOYAFA NF-8508 Network Cable Tester with Optical Power Meter
  • Multifunctional NOYAFA NF-8508 Network Cable Tester: There are nine features to meet your needs. Continuity Testing, Cable Scan, Port Flash, Length Measurement, POE Power Supply Test, QC testing, Optical Power Meter, VFL and NVC function.It is perfectly suited for various engineering cabling projects, network troubleshooting, network equipment maintenance and testing scenarios. Its precise cable scanning and fault localization capabilities help you effortlessly pinpoint the root cause of issues.
  • 7 WAVELENGTHS OPTICAL POWER METER: NF-8508 network cable tester can measure 7 standard wavelengths, 850/1300/1310/1490/1550/1625/1650, power detecting range(dBm): -70 ~ +10. Its power detection range spans from -70 dBm to +10 dBm, supporting FC/SC/ST connectors. It enables precise fiber optic power measurement, helping users efficiently assess fiber signal strength and ensure healthy fiber link operation. It effortlessly detects attenuation issues within fibers, thereby safeguarding fiber network stability.
  • High Efficiency Visual Fault Locator: Easy identification of fiber breakpoints, poor connections, bending or cracking. Excellent for finding the right fiber to splice or quickly finding a break. Emmiting Energy: standard wavelenth: 650nm. Fast flashing, slow flashing, high precison.The built-in self-calibration ensures stable long-term performance, and Class IIIa laser (output<5mW) ensures safe daily operation.
  • PORT FLASHING:The indicator light on the connection port in the NF-8508 device flashes to help accurately locate the cable. Displays port information, including operating speed, duplex mode, and negotiation settings. Port lights flash on the same screen to show the port's operating speed, making it easy to pinpoint lines and ports.
  • PoE Testing and Cable Length Test: PoE testing can check cable mapping polarity and voltage of PoE network switches, withstand 60VDC. Automatically detects and switches between 10M/100M/1000M modes, Includes cable tracking, short circuit test, interruption of circuit test and etc The RJ45 cable tester can quickly measure the length of the cable with a range of 200m. Not only network cables, but also phone lines and BNC cables.

mtr: combine repeated route and response observations

MTR combines traceroute-like path discovery with repeated ping-like probes. Its output can show response percentages and response times at points along the route, which can help reveal patterns that a single route trace may not show. It remains dependent on which probes receive replies, so filtering or rate limiting can affect the display. The Ubuntu Jammy manual documents MTR’s behavior and options: mtr manual. Cloudflare also identifies MTR as a troubleshooting method for path health: Gathering information for troubleshooting sites.

How to read route-trace gaps and delays

  • A hop responds: that device returned a response to the probe. It does not prove that all traffic beyond it is healthy.
  • A hop does not respond: the probe may have been filtered, ignored, or rate-limited. Microsoft notes that some routers silently drop probes whose TTL expires, creating gaps in tracert output.
  • Later hops respond after a gap: the route continues beyond the nonresponding hop; the gap alone does not identify a fault.
  • Repeated high response times or loss: treat them as clues, not a definitive diagnosis. A router may handle diagnostic probes differently from ordinary application traffic, and results describe the path and probe type from the device running the command.

Windows route tracing uses TTL behavior and can produce incomplete paths when intermediate routers do not respond: Microsoft’s TRACERT guidance. For router-side investigation, Cisco documents extended ping and traceroute commands that let network administrators investigate connectivity and narrow routing problems; the available options depend on device context: Understand the Extended Ping and Extended Traceroute Commands.

Rank #4
Sale
iMBAPrice - RJ45 Network Cable Tester for Lan Phone RJ45/RJ11/RJ12/CAT5/CAT6/CAT7 UTP Wire Test Tool
  • Automatically runs all tests and checks for continuity, open, shorted and crossed wire pairs. Visible LED status display.
  • Cable state testing (2-wire): Line DC detecting, anode and cathode determination,Ringing signal detecting open, short and cross circuit testing
  • Cable Type: RJ11 Telephone cable and RJ45 LAN cable
  • Connectors: Ethernet Cat 5, Ethernet Cat 5e, Ethernet Cat 6, Ethernet Cat 7, RJ11 6P and RJ45 8P
  • Power Source: DC9V Battery Required (not included)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common result patterns

The gateway does not reply to ping

First verify that ipconfig shows the expected active adapter and gateway. A missing reply may indicate a local connectivity issue, but it can also mean the gateway or network policy does not answer ICMP. Do not infer an outage from that result alone.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A remote IP responds, but a hostname does not work

Check the name with nslookup. If resolution fails, investigate the DNS server, the specific record, and—on Windows—the local cache. If the name resolves but the application still fails, DNS is not the only issue to investigate.

Best Value
Network Ethernet Cable Tester for LAN RJ45 RJ11 CAT5 CAT5E CAT6 CAT6A CAT7, Ethernet Wire Tester Tool UTP/STP Continuity Test for Telephone Line Finder Home Repair (HT812A)
  • Multi-Function Network Cable Tester: Supports RJ45 (CAT5, CAT5e, CAT6, CAT6A, CAT7) and RJ11 telephone cables. Quickly detects continuity, short circuits, open wires, miswiring, and cable shielding status, ensuring your LAN or phone lines are correctly wired and ready to use.
  • Fast/Slow Mode with LED Indicators: Switch between fast and slow scan speeds to identify wiring issues more precisely. LED lights on both master and remote units show wire order, making it easy to spot errors like open pairs or misaligned pins at a glance.
  • Split-Type Design for Long-Distance Testing: Master and remote units can be detached and used separately, allowing you to test both ends of a long cable run, ideal for wall-mounted ports, long runs, or structured cabling. Perfect for home, office, or professional IT setups.
  • Compact, Lightweight & Durable: Ergonomically designed with sturdy ABS housing, this pocket-sized tester is ideal for on-the-go network engineers, DIYers, and electricians. It’s your go-to toolkit for cable maintenance, upgrades, or new installations.
  • Safe & Easy to Use: Simple one-button operation makes testing quick and hassle-free. LED indicators clearly show wiring status, while the G light instantly identifies shielded (FTP/STP) or unshielded (UTP) cables. Supports safe testing of telephone lines with typical voltages under 48-72V, ideal for both home and professional use.

The hostname resolves, but ping gets no reply

DNS may be working while ICMP is filtered, or the destination may not respond to echo requests. A successful lookup and failed ping are not contradictory: they test different things.

tracert shows asterisks or missing hops

Those entries mean the probes did not receive the expected response within the wait period. Intermediate devices may suppress or limit such responses. Check whether later hops respond and compare with the actual application symptom rather than treating each gap as a fault.

Platform and syntax notes

The command examples above are explicitly labeled for Windows or Linux where supported. Windows uses tracert; MTR is a separate utility documented for Ubuntu Jammy and may need to be installed. Other operating systems and versions can use different command names, options, or defaults. Cisco extended diagnostics run in network-device contexts and are not interchangeable with a desktop command prompt.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.