Networking Troubleshooting with Windows OS
Subject: Fundamental Of Computer Troubleshooting (VU-CYB 203)
Introduction to Networking Troubleshooting
Networking troubleshooting involves identifying and resolving issues that prevent devices from communicating over a network. In Windows OS, this includes:
- Internet connectivity problems.
- DNS resolution errors.
- IP address conflicts.
- Firewall or security settings blocking traffic.
Common Windows Networking Tools
1.
Ping: is a simple network tool used to check if a computer or server is reachable and how fast it responds. (enter in command prompt: ping google.com)
Pinging google.com [216.58.215.46] with 32 bytes of data:
Reply from 216.58.215.46: bytes=32 time=119ms TTL=110
Reply from 216.58.215.46: bytes=32 time=126ms TTL=110
Reply from 216.58.215.46: bytes=32 time=160ms TTL=110
Reply from 216.58.215.46: bytes=32 time=130ms TTL=110
Ping statistics for 216.58.215.46: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 119ms, Maximum = 160ms, Average = 133ms
Connectivity
Packets sent: 4
Packets received: 4
Packet loss: 0%
This confirms my internet connection is working properly.Speed / Latency
Average ping: 133 ms
Range: 119 ms – 160 ms
2.
ipconfig: is used to see full details of your computer’s network configuration. Think of it as “show me everything about my network connection.” (enter in command prompt: ipconfig /all)
Uses of ipconfig /allTo confirm your PC is properly connected
It shows whether your computer has:
- An IP address
- A Default Gateway (router)
- DNS servers
If any of these are missing, internet may not work.
3.
netstat: is a network status command. It shows what your computer is doing on the network right now; i.e it shows active connections and listening ports. (enter in command prompt: netstat -an)
Uses of netstat -an- See active network connections: It shows which IP addresses your computer is connected to and which ports are being used; this helps answer: “What is my computer talking to on the internet right now?”
- Check open (listening) ports: You can see services waiting for connections (e.g. web server, database) and Ports like 80, 443, 3000, 5432, 3306
Python Code for Basic Troubleshooting
Python can automate some of these tasks. Below is a sample script:
import os
import socket
def ping_test(host="8.8.8.8"):
print(f"Pinging {host}...")
response = os.system(f"ping -n 4 {host}")
if response == 0:
print("Ping successful!")
else:
print("Ping failed!")
def dns_test(domain="www.google.com"):
print(f"Resolving {domain}...")
try:
ip = socket.gethostbyname(domain)
print(f"{domain} resolved to {ip}")
except socket.error:
print("DNS resolution failed!")
def main():
print("=== Network Troubleshooting Tool ===")
ping_test()
dns_test()
if __name__ == "__main__":
main()
By:
Vision University
Login to comment or ask question on this topic
Previous Topic