![]() |
The Windows Command Prompt (CMD) may seem intimidating, but it's the most powerful diagnostic tool you have. In this guide, we won't just tell you what to type, we'll show you exactly what you'll see on your screen and how to interpret it.
Command Index
1. ipconfig: Who am I?
Displays your computer's IP configuration. This is the first command you should use to check if you're connected to your local network.
- Command: ipconfig (or ipconfig /all for complete details)
What you'll see on the screen (Simulated Output):
What to look for:
If you see something starting with169.254...underIPv4 Address, your computer is unable to obtain an IP address from the router (DHCP issue). If you see a blankDefault Gateway, you won't be able to browse the Internet.
2. ping: Reachability Test
Checks whether another computer or website is reachable and how long it takes to respond.
- Command: ping google.com
What you'll see on the screen (Simulated Output):
What to look for:
Reply fromindicates success. If you seeRequest timed out, the server is not responding or there is a block.duration=xxmsindicates the speed (under 50ms is excellent, above 150ms you will experience slowdowns).
3. tracert: The data path
Shows all the "hops" (routers) your signal goes through to reach its destination. Useful for understanding where the connection is blocked.
- Command: tracert google.com
What you'll see on the screen (Simulated output):
What to look for:
If the trace stops at point 1, the problem is at your site. If it stops at point 2 or 3 and you see asterisks * * * Request timed out, the problem is likely with your Internet Service Provider (ISP).
4. nslookup: DNS Name Test
Checks if your computer can translate a name (e.g., "repubblica.it") into its numeric address.
- Command: nslookup google.com
What you'll see on the screen (Simulated output):
What to look for:
If you receive a message likeDNS request timed outorNon-existent domain, you have a DNS problem. The site exists, but your computer can't find its number.
5. netstat: Active Connections
Shows who's talking to your PC.
- Command: netstat -an (show numbers and ports)
What you'll see on the screen (Simulated Output):
What to look for:
ESTABLISHED: Active connection (you are exchanging data).
LISTENING: An open port on your PC listening for connections (potential risk if you don't know what it is).
443/80: These are the web ports (HTTPS/HTTP).
6. arp: Neighbor Table
Displays the map between IP Addresses and Physical Addresses (MAC Addresses) on your local network.
- Command: arp -a
What you'll see on the screen (Simulated Output):
What to look for:
Useful for finding out if there's an "intruder" device on your Wi-Fi network by checking if you recognize the IP addresses listed.
7. netsh: Wi-Fi Profile Management
Among Netsh's many functions, the most useful for the average user is viewing saved Wi-Fi profiles.
- Command: netsh wlan show profiles
What you'll see on the screen (Simulated Output):
What to look for:
This is a list of networks you've connected to in the past. You can use this name to recover your password with the command: netsh wlan show profile name="Vodafone-A1B2" key=clear.
8. route: Routing Table
Shows how the PC decides where to send packets.
- Command: route print
What you'll see on the screen (Simulated Output):
What to look for:
The most important line is the first one (0.0.0.0). It says "anything I don't know, I send to Gateway 192.168.1.1" (your router). If this line is missing, you won't be able to access the Internet.
9. telnet: Test TCP Ports
Checks whether a specific "port" on a remote server is open.
Note: If the command is not recognized, it must be activated from "Control Panel -> Programs -> Turn on Windows Features".
- Command: telnet google.com 80
What you'll see on the screen:
SCENARIO A (Success):
The terminal goes all black or the cursor blinks in the top left without errors. This means the port is open and the server has accepted the connection.
SCENARIO B (Failure):
What to look for:
If you get "Connection failed," it's likely that a firewall (yours or the server's) is blocking that specific port.
Follow me #techelopment
Official site: www.techelopment.it
facebook: Techelopment
instagram: @techelopment
X: techelopment
Bluesky: @techelopment
telegram: @techelopment_channel
whatsapp: Techelopment
youtube: @techelopment
