Skip to content
🔎 Basic Network Information
ipconfig
Displays IP address, subnet mask, and default gateway.
ipconfig /all → detailed info (MAC address, DNS, DHCP)
ipconfig /release → release IP
ipconfig /renew → request new IP
hostname
Shows your computer’s name on the network.
🌐 Connectivity Testing
ping <host>
Tests connectivity to another device or website.
Example: ping google.com
tracert <host>
Shows the route packets take to reach a destination.
pathping <host>
Combines ping and tracert with more detailed statistics.
🔌 DNS & Name Resolution
nslookup <domain>
Finds the IP address of a domain.
ipconfig /flushdns
Clears DNS cache.
ipconfig /displaydns
Shows cached DNS entries.
📡 Network Connections & Ports
netstat
Displays active connections and listening ports.
netstat -an → all connections + ports
netstat -b → shows programs using ports
🖥️ Network Configuration & Management
netsh
Advanced configuration tool.
Examples:
netsh wlan show profiles → saved Wi-Fi networks
netsh interface ip show config
getmac
Displays MAC addresses of network adapters.
🧰 Troubleshooting & Utilities
arp -a
Shows ARP table (IP-to-MAC mappings).
route print
Displays routing table.
nbtstat
Shows NetBIOS over TCP/IP info.
🔐 Network Shares & Sessions
net use
Connect/disconnect network drives.
net view
Lists shared resources on a network.
⚡ Tips
- Run Command Prompt as Administrator for full functionality.
- Combine commands with
| (pipe) for filtering (e.g., netstat -an | find "80").
- Use
help <command> for details on any command.