Home / Tips & Tricks / Command Prompt / 8 Networking Commands of Command Prompt

8 Networking Commands of Command Prompt

Since the beginning of windows, people at Microsoft are focused on a more user-friendly layout that’s why we have settings and control panel. If you want more control or you are an advanced user you should give a try to command prompt (cmd). We have a guide on the basics of a command prompt have a look if you want to get started on command prompt.

In this guide, we will be talking about Networking commands of cmd. These commands can help you with knowing IP addresses, measuring ping and packet losses, route tracing, and about a stable internet connection.


Ping command is one of the very basic commands but important. By this command, you can test a network connection with a certain site. Ping command not only tells about connection but also how much it takes time to establish a connection. The syntax for this command is type ping and then the website name or IP address.

ping www.google.com

Result of ping command which is networking command

You can see the ping command will be sent 4 packets and then measure how many it has received. Also, it gives us in how much time this process has taken in this process.

By default, it sends 4 packets but you can change this setting with adding a little option in the command.

ping www.google.com -n 15

Result of ping command which is networking command

You can see setting the value to 15 this will be sent 15 packets so you can have a better idea of your internet connection.

Related: How to use a Ping command.

Trace Route

For traceroute, we use the tracert command. Like ping, tracert also sends a data packet and then tracks the route. It is useful to identify the problem in large networks where many routes are taken to arrive at one point.

tracert www.google.com

Result of trace route command which is networking command

Tracert sends three packets to each server. For best use average three times to get more accurate results.

Realted: How to use tracert command.

Path Ping

Path ping is like tracert but it gives more detail. Basically it combines the function of ping and tracert. It will send the packets from your computer to a given destination then it will analyze the information and lastly record the packet loss on a per-hop basis.

pathping www.google.com

Result of path ping command which is networking command

This command first traced the route and then analyzed the packet loss of each server.

IP Config

IP config is a very basic command and it gives detail information about your computer’s online IP addresses, subnet masks, local link addresses.


Result of IP config  command which is networking command

If you have an internet connectivity problem it will not show the information under the wireless LAN adapter.

Get Mac

It is not a giveaway mac gift but a command in our networking command prompt list. We use this command to get a MAC(media access control) address of our computer which is self-explanatory by looking command name.


Result of get mac command which is networking command

Mac address has many useful applications: servers can know what device it is by knowing mac address and data packets are also sends towards mac addresses.


This command is used to look for IP addresses behind certain domains. For big websites that are routed through many servers and do not have any fixed IP. You can know the name by searching for that IP address in the browser but it is normal that many IP addresses will not render any domain name because of security issues.

nslookup www.google.com

Result of NS lookup command which is networking command

Net Stat

It is a very powerful command and shows all networks which are connected to your computer. This will show information in the form of established connections, close wait or time wait. But it does not mean established connections are sharing any information, it only means the port is open with that network and ready to share.


Result of Net Stat command which is networking command


This command stands Network shell. It turns command prompt into network shell and gives user a complete control over every network in terms of information than any of previous command.


Result of Netsh command which is networking command

These are the networking commands of cmd I hope you will find these helpful. If you want to learn more about networking commands do visit SS64. To learn basic commands of cmd click here


  1. Very Informative brother. Thanks for increasing my Concept.
    From Paban

Leave a Reply

Your email address will not be published.