Search This Blog

Useful Networking Commands (Windows)

A list of built-in networking tools that developers should be familiar with.
  1. List all the port using TCP with IP address
    1. Netstat -pn TCP
  2. Ping: used to test the ability of one network host to communicate with another.
    1. ping www.google.com -t
  3. ARP: Windows devices maintain an ARP cache, which contains the results of recent ARP queries. 
    1. apr -a 192.168.1.4
  4. Hostname: Typing Hostname at the command prompt returns the local computer name.
  5. NbtStat: NetBIOS over TCP/IP can occasionally break down. The NbtStat command can help you to diagnose and correct such problems.
    1. NbtStat -n //names that are in use by device
    2. NbtStat -r //how many NetBIOS names the device has been able to resolve recently.
  6. Tracert: Tracert sends a series of ICMP echo requests, and the request’s TTL increased by 1 each time. This allows the utility to display the routers through which packets are passing to be identified. When possible, Windows displays the duration and IP address or fully qualified domain name of each hop.
  7. IpConfig: display basic IP address configuration information for the device.
    1. ipconfig /all
    2. ipconfig /renew
    3. ipconfig /flushdns
  8. NSLookup: display the name and IP address of the device’s default DNS server.