1. Firstly, you should go to your command prompt window. Open Run (how to open run) and type cmd.
ipconfig used to display the TCP/IP network configuration values. If your computer connected to internet or local network you will have an ip address and will described in ipconfig. To view switches for ipconfig use ipconfig /? command for help, let’s see the picture and explanation below.
/release : release specified adapter if you got IP address from DHCP server.
/renew : renew and ask for new IP address from DHCP server.
/flushdns : clear all DNS local cache
/displaydns : displaying what do you have in your local DNS cache.
This command usually used to check active connection between computer or server. Ping sends out a packet to a designated internet host or network computer and measures its response time. The target or other computer will respond and return a signal to determine the quality of connection to other site or another computer.
If you see the image above, my current connection with google.com is not too good(but also not too bad), because the average time for the very good connection is not more than 100-150ms (more lower more fast).
When you do ping command, the default packet value you send to other computer is 32 bytes.
If you find “Request timed out” message when you perform ping, maybe the remote server or computer didn’t allow ping or they have a firewall.
Tracert (traceroute) is another command adopted from Unix system. Actually when you try to open facebook.com or google.com in your browser, you ask your computer to go to that address through hopping into a few router address. Let’s see the picture below when I’m trying to traceroute to google.com(sorry if I put a lot of sensor in this pics).
To reach google.com I need to go through 8 hop(router) until my last destination. Usually tracert command also can be used to check your connection into some websites. If you found that the hop more than 15 when you do tracert command, that website should be very slow accessed from your PC.
Netstat displays the active TCP connections and ports on which the computer is listening, Ethernet statistics, the IP routing table, statistics for the IP, ICMP, TCP, and UDP protocols. Netstat also can be used to tracking your outbound or inbound connection to your computer, it’s useful to malicious connection. Let’s see the picture below to see the available switch in netstat.
netstat -a : use to displaying all connection and listening ports.
netstat -b : showing the executable files involved in creating connection
you also can use the switch simultaneously, for example netstat -ab to display all connection and executables files related to it’s connection
This command helps to diagnose the Domain Name System (DNS) infrastructure and comes with a number of sub-commands. Usually used by hackers to find out some useful information that you can’t find on search engine. In this tips and trick I’m only show you how to find server IP address or host name. Type nslookup and the enter the URL of website you want to know it’s IP address for example I use google.com.
As you can see on picture above, that google.com have about 5 IP address and if you open all of that IP address, it will open the same website : google.com.
At the command prompt, type hostname, and then press Enter.
At the command prompt, type ipconfig, and then press Enter.
For more information about the ipconfig command, at the command prompt, type ipconfig /?, and then press Enter.
At the command prompt, type ipconfig /all, and then press Enter.
If your computer has more than one network adapter, the physical address of each adapter is listed separately.
If your network uses Dynamic Host Configuration Protocol (DHCP), you can get a new IP address for your computer. You might need to do this if you are having connection problems.
At the command prompt, type ipconfig /release, and then press Enter.
This releases your current IP address.
At the command prompt, type ipconfig /renew, and then press Enter to get the new IP address.
The DHCP configuration for all adapters will be renewed. To renew the IP address for a specific adapter, type the adapter name that appears when you type ipconfig at the command prompt.
At the command prompt, type ping DNS name, and then press Enter.
At the command prompt, type ping IP address of the computer you want to test, and then press Enter.
On a home network, if you don’t get a response in a second or two, the other computer is not recognized on the network. Make sure that it’s turned on and that the network adapter is enabled.
To obtain detailed information about your network connection, use the ipconfig command. Type ipconfig in Command Prompt and press Enter. As you can see below, a list with the network devices existing on your system and their IP addresses is displayed. You get also details such the default gateway, subnet mask or the state of the network adapter.
With the /all switch you will get a whole new level of detail: DNS information, the MAC (Media Access Control) (in the Physical Address field) and other information about each network component. Check out the picture below to see a sample of the combination of ipconfigcommand with the /all parameter.
It’s worth mentioning that the ipconfig command allows you to perform certain operations, if you use the right parameter. For example the ipconfig /release and ipconfig /renew commands force your network adapter to drop and renew the current IP address. These parameters are useful in networks that use DHCP (Dynamic Host Configuration Protocol) to distribute IP addresses automatically. Basically your system gives up its current address and requests a new one from the DHCP server. This can be very useful in certain networking scenarios.
Another way to obtain the MAC address is to use the getmac command. Just type getmac and press Enter, as shown below.
To test your connection to a certain website or another network or Internet location, you can use the ping network command followed by a web-address or IP address. For example, if you want to check the connectivity to our website, without opening a web browser, type pingwww.7tutorials.com and then press Enter.
This command allows you to use a quite useful parameter that enables you to ping the specified address until it’s stopped manually: -t. For example, I typed ping -t 192.168.2.1. After a period I decided that I want to see some statistics and I used the keyboard combination CRTL + Break. This shows the averages for the ping commands run until then. Finally I terminated the action by using the keyboard combination CTRL+C. This stopped the endless cycle of ping commands to the specified address.
With the netstat command you will be able to see active network connections between your system and any other systems on your network or the Internet.
The -a parameter shows all connections and listening ports. A sample can be seen in the image below.