Skip to main content

Scan LAN en CMD

Scan-Network-for-IP-Addresses.jpg

Scanning for IP address lets you have better control over your network.

With 1-2 commands, you can quickly map out the devices in your network and the IP addresses that they are using.

But to understand how to scan a network, first, you need to understand how are IP addresses assigned.

Follow these four simple steps to scan your network for IP addresses in use:

  1. Open a Command Prompt window.
  2. On Windows or macOS type ipconfig or on Linux type ifconfig. Press return. Note down the subnet mask, the default gateway, and your own computer’s IPv4 address.
  3. Enter the command arp -a to get a list of all other IP addresses active on your network.
  4. Enter the command ping <IP_address> giving any of the addresses returned by ARP in order to test the response times to that node – don’t include the angle brackets that are shown in that example.

DHCP (Assigning IPs Dynamically)

An automated process in networking, called DHCP (Dynamic Host Configuration Protocol), assigns IP dynamic addresses to hosts as soon as they enter the network. In a home or small network, the DHCP server is usually a part of the router. When you come into the network, the router will look for an available IP address in its pool and assign it to you, so that your device can communicate with others without any conflict.

Dynamic allocation of IP addresses is a great advantage for both end-users and network admins. But sometimes you would need to have some control in order to manage and troubleshoot your network more efficiently.