//
archives

Networking Update

This category contains 3 posts

Basic Command line for TCP/IP.


Step By Step :

1. Firstly, you should go to your command prompt window. Open Run (how to open run) and type cmd.

2. ipconfig

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.

Basic command line for tcp/ip and networking in windows you should know

FYI :

/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.

3. ping

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.

Basic command line for tcp/ip and networking in windows you should know

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.

4. tracert

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).

Basic command line for tcp/ip and networking in windows you should know

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.

5. Netstat

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.

Basic command line for tcp/ip and networking in windows you should know

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

6. nslookup

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.

Basic command line for tcp/ip and networking in windows you should know

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.

– See more at: http://www.hacking-tutorial.com/tips-and-trick/basic-command-line-for-tcpip-and-networking-in-windows-you-should-know/#sthash.TNvs6u4M.dpuf

Using command line tools for networking information


How do I find my computer name?

At the command prompt, type hostname, and then press Enter.

How do I find my computer’s IP address?

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.

How do I find my computer’s physical address (the media access control [MAC] address)?

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.

How do I get a new IP address?

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.

  1. At the command prompt, type ipconfig /release, and then press Enter.

    This releases your current IP address.

  2. 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.

How do I look up an IP address using a Domain Name System (DNS) name?

At the command prompt, type ping DNS name, and then press Enter.

How do I test communication with another computer?

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.

Command Prompt – Advanced Networking Commands


Retrieving Information About Your Network Connection

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.

Command Prompt

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.

Command Prompt

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.

Finding Your Computer’s MAC Address

Another way to obtain the MAC address is to use the getmac command. Just type getmac and press Enter, as shown below.

Command Prompt

Testing the Connection to a Website or Network/Internet Location

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.

Command Prompt

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.

Command Prompt

Check Network Connections and Display Port Information

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.

Command Prompt

The -a parameter shows all connections and listening ports. A sample can be seen in the image below.

Command Prompt

%d bloggers like this: