With Windows Command Prompt, you can get real power of the operating system, a program that will easily accompany you into the deepest layers of Windows.
Windows operating system users have always felt a sense of limitation in the settings and controls of the Windows panel. If you want to taste the full control over your Internet network and have all the options that Windows can provide, then you should use Windows Command Prompt.
Haven’t used Command Prompt yet? Do not worry. It’s simple to use, you can learn more about it by typing the following commands. Here’s a look at some of the most commonly used network domain commands to make managing and troubleshooting your home network easier.
The first step is to search for the Command Prompt application in the Windows Start menu. You can use the abbreviation for that Windows Command Prompt and execute it by clicking on the program. You can now type in your order and wait for the result.
۱. PING syntax
The “ping” command is one of the simplest yet most applicable commands in the command line environment. With this command you can find out if your computer can get an IP address or domain name ? And if so, how long does it take to get the data back there? In other words, you can check your Internet or network connection through the Ping command line environment.
Professional users often check the Google website for a check on their Internet connection, but they will be completely professional and fluent in the domain of the Google website in the Windows Command Prompt ping application.
The command-line workflow sends multiple packets of data and records the number and timing of packets returned. If some of these packages are unreturned, you will encounter a Lost message. The meaning of these messages is especially important for those who play online games because the missing pack will indicate inappropriate gameplay and one of the best ways to check this is to use the same command.
By default, 1 packet will be sent, each with 4 seconds to wait before expiration.
You can increase the number of packages if you want, and just use the following command:
ping www.google.com 10
It is also possible to increase the timeout time by using the following command with millisecond units and adjusting the time of your choice.
ping www.google.com -w 6000
۲. TRACERT command code
This is the Trace Route acronym. Type the tracert expression and then enter the IP address or domain name with the same space as before. This command will perform investigations by sending packets and trying to connect to the intended destination with the aim of troubleshooting possible network problems. The process of doing this is to record all the paths that go from one server to another to eventually reach the destination you entered.
As you can see in the photo, the list of jumps from server to server and information such as latency or server response time and IP address or server names are displayed line by line. But why is there a time when it shows three rows?
Because the tracert command sends three packets per jump to monitor the slowdown or possible packet loss. Therefore, keep in mind the average of the three packages for a more accurate calculation of the Latency period.
۳. PATHPING syntax
The pathping command will have results similar to the tracert command, but with more details that will extend the execution time of the command. After sending packets to your destination, you will see the results by checking the route taken and calculating the lost packets by each jump.
۴. IPCONFIG syntax
The ipconfig command is often known as the most commonly used command line command in Windows. In addition to the useful information it provides, it also lets you perform specific tasks in addition to combining multiple switches.
This command will show by default the information about the network adapters on your system and their details. The most important information from this command is the details of the IPv4 address and Default Gatewaty address in the wireless adapter and Ethernet adapter.
One of the functional switches in combination with the ipconfig syntax for the purpose of clearing DNS cache is typed as follows:
ipconfig / flushdns
This command applies when a user is connected to the Internet and only certain websites or servers do not go up for some time such as timeout. You may be able to reload your site again with this command; however, this may be a problem elsewhere if this does not help you.
۵. GETMAC syntax
Every device that meets IEEE 802 standards has its own MAC address . A MAC address is a source of media access control defined in each segment in accordance with certain principles and is unique as a fingerprint. Components makers are required to assign the MAC address to the device and store information about it in the hardware.
Some users control their network connectivity by restricting specific MAC addresses, thereby increasing network security.
This may result in more than one MAC address depending on the number of network adapters on your system. For example, Wireless and Ethernet Mac have different addresses that you can split if necessary.
۶. NSLOOKUP syntax
The nslookup command, which is briefly derives from the Name Server Lookup term, is very powerful; however, many users do not need all of its power. For ordinary Windows users like you and me, the main use of this command is to find a domain-specific IP address.
Keep in mind that each domain name may not have just one specific IP address, so it may show you a new IP each time you use it. Especially large websites, because of the segmentation of their work, they use a lot of machines and this leads to different IPs.
If you want to convert the obtained IP address to a domain name, just enter the IP address in your browser and wait for the website to load. Not all IPs will reach a specific domain, however, and some addresses may not be available on the Internet.
۷. NETSTAT command code
Netstat syntax is a complete tool uses to provide general statistics, troubleshooting and network analysis. This command line is very powerful and complex, but can also be as simple as necessary, provided you ignore its advanced aspects. Its sophisticated features are effective for those who manage large networks such as businesses or academic environments.
By default, the netstat command line shows all the active connections on your system,
whether those connections are LAN or over the network or an Internet connection. Active connection here does not only mean data exchange between two ports , but can also include all open and ready ports for connection.
the netstat command is more efficient for ordinary users because it covers the port information completely
and becomes useful when the user needs the port. Also, using additional switches, the netstat command can modify the displayed information, for example by typing the -r switch to display the routing table.
۸. NETSH Windows Command Prompt code
The netsh command is derives from the Network Shell statement
that you can view all networking operations through this command line in cmd and fine-tune all the network adapters in your system.
In other words, with this command you will have almost all the processes of the previous command.
By launching the netsh command on the command line alone, you will change the Command Prompt program to Network Shell. There are several areas in this shell, each with a specific section. For example, one of the fields related to routing commands, another for DHCP commands, another for troubleshooting, etc., but it can also be used to set up independent commands.
Enter the following command to view all network shell fields as shown below:
And to show all the commands available for a particular field, enter the command as shown below:
You can also break into another layer if necessary to get more instructions, just execute the command as shown below:
And by executing the following command, all wireless network drivers on the system will display in detail their settings:
netsh wlan show drivers
The network shell command is very complex and detail and can be discuss in a separate article. At the moment, just know that if you are going to set up and control your network completely professionally and technically, you must have mastery of all aspects of this command code.