DEV Community

Cover image for How to Scan a Private IP Range Without Touching the Wrong Network
AssetLoom Marketer
AssetLoom Marketer

Posted on Originally published at assetloom.com

How to Scan a Private IP Range Without Touching the Wrong Network

If you need to scan private IP range safely, the scan itself is the easy part. The hard part is knowing which addresses are really yours.

We hear some version of this story every year. A new admin runs nmap -sn 10.0.0.0/8 on a Friday to "see everything." By Monday, the firewall is sluggish, security has an alert, and a payment vendor is asking why their network got probed through the VPN tunnel.

Nothing malicious happened. The scan was just too big and pointed at unchecked space.

The short answer is simple. Don't sweep the whole private space. Rule out ranges that belong to vendors, cloud peers, or containers. Map the subnets you actually use, probe gateways to find the live ones, and sweep only those.

A Private IP Isn't Always Your IP

Private only means an address can't travel across the public internet. It says nothing about who owns the network behind it.

RFC 1918 defines three private IP ranges. Most companies use pieces of all three, often without a full list of where. Here's where each private IP range usually shows up in a real company network.

The 10.x range is the one people accidentally sweep. It's huge, and it's where most internal routing lives.

Inside these ranges, some addresses are reachable from your network but belong to someone else. Rule these out before you scan anything.

  • Site-to-site VPN tunnels to vendors, payment processors, or a parent company
  • Cloud networks peered with a partner's account
  • An MSP's management network
  • Pod and service ranges on your Kubernetes clusters. These are yours, but they change by the minute and usually aren't reachable from outside the cluster.
  • 100.64.0.0/10 used by carrier NAT and some mesh VPNs. It isn't RFC 1918, but people often treat it like private space.

If a probe gets routed into a vendor tunnel, you aren't scanning your network anymore. You're scanning theirs. A technical task just became a contract question, and maybe a legal one.

Overlap causes a quieter problem. Two branches that both use 192.168.1.0/24 look like one subnet from headquarters. Your scan shows one office and silently skips the other.

The Real Risk Hides in Empty Address Space

The three private ranges hold about 17.9 million IPv4 addresses. A company with 300 people might use a few dozen /24 subnets. That's a few thousand addresses, well under 1% of the space.

So a blind sweep spends almost all its effort on addresses that don't exist. And that space isn't free.

  • Every probe that crosses a stateful firewall can create a session entry. An unthrottled sweep opens thousands of new sessions per second, which is enough to choke a smaller branch firewall.
  • Empty addresses never reply, so a blind sweep spends most of its time listening to silence.
  • A steady sweep across a /8 looks a lot like the reconnaissance that IDS and EDR tools are built to catch.

These are calculated estimates at 100 addresses per second, a polite rate for a production network.!

Fifty hours is a full weekend of traffic aimed mostly at nothing.

Map Your Private Space Before Sending a Single Packet

To scan private IP range safely, start with what your network already knows. You just have to ask it in the right places. Begin with the fastest sources and work down.

  • DHCP scopes. They show every user and device subnet you hand out.
  • Routing tables on core switches and firewalls. If a subnet is routed, it's in there.
  • Firewall address objects and VPN tunnel settings. These show what is not yours, so they become your excluded list.
  • Cloud network ranges. Include any peering connections.
  • Device IPs from Microsoft Intune or Jamf Pro. Useful if you already manage laptops there.
  • The IT inventory spreadsheet someone stopped updating in 2022. Use it as a hint, never as the truth.

Then turn what you find into three short text files.

  • ours.txt for subnets you know and can document
  • unknown.txt for space that is routed, but nobody can explain
  • exclude.txt for vendor tunnels, peered networks, and segments you've been told not to touch

Before you run anything, confirm the target count with a dry run, as covered in our safe network scanning practices guide. If you expect a few thousand hosts and see a few million, stop and fix the list.

Run a Gateway Census, Then Sweep Only Live Subnets

Your unknown.txt list still needs checking, but you don't need to probe every address in it. Knock on the front door of each /24 before you check every room.

Most subnets put their gateway on .1 or .254. Probe only those two addresses in each /24, and you learn which subnets are alive at a fraction of the cost.

Most scanners can run a census like this if you set four things.

  • Targets. Only the .1 and .254 addresses of each /24 in your unknown list.
  • Discovery only. Check whether hosts are alive, with no port scanning.
  • No DNS lookups. Reverse lookups on every live host slow the scan and add load to your DNS server.
  • A rate limit. Around 100 addresses per second is gentle enough for most production networks.

At that rate, a full sweep of the 10.x range checks 16,777,216 addresses and takes about 47 hours. The census checks 131,072 addresses and takes about 22 minutes. Same question, about 128 times less traffic.

A census has limits. Some gateways ignore ping, so add a TCP check on common ports like 22 or 443. The census also assumes /24 subnets. A /22 has one gateway for four /24 blocks, so three of them look empty. Compare the results with your routing table, which shows the real subnet sizes. A subnet that stays silent is unconfirmed, not empty.

Then run your normal discovery sweep on the live /24 subnets only.

Where You Scan From Changes What You Find

The same scan gives different answers depending on where it starts. On the same segment, ARP works and almost every device has to answer. Cross a router, and you only see what ping, TCP, and the firewall allow. Over VPN, split tunneling may reach only part of the network, while a full tunnel pushes scan traffic through the concentrator your remote colleagues rely on. In the cloud, scan from inside, where security groups decide what answers.

Even your own laptop can mislead you. Docker and WSL often claim 172.17.x, so probes to that range never leave your machine.

Our rule is simple. Use one scanner per site or VLAN, not one laptop at headquarters.

When Scan Results Lie

Scan results look precise, which is exactly why they fool people.

  • Every address looks alive. Locally, that's usually proxy ARP. Across a router, it's often a firewall answering TCP probes for every address.
  • Windows machines look offline. Windows Firewall blocks ping by default.
  • Two sites merge into one list. Overlapping subnets produce duplicate IPs for different devices.

The fix is a cross-check against your DHCP and routing data. A device that shows up in only one source deserves a closer look.

Read more about how ARP, TCP and passive checks find devices that ignore ping in our guide to IT asset discovery.

How AssetLoom Supports Ongoing Device Visibility

Even a clean IP list is not an IT inventory. It tells you something is answered. It doesn't tell you what it is, who owns it, or whether anyone should care.

This is where the surprises show up. That mystery device on an undocumented subnet is often a printer a department bought on a company card and plugged in themselves. Nobody did anything wrong. It just never made it into the spreadsheet.

We built two tools that cover both halves of IT inventory tracking. The free scanner finds what's connected, and AssetLoom, our IT asset management (ITAM) platform, turns those results into records your team can act on. Here's how the workflow looks.

  • Scan your approved ranges. Run the AssetLoom Free Network Scanner against the live subnets from your census. It works on Windows, macOS, and Linux, needs no agents or sign-up, and runs locally, so your network data stays with you. Start with a dry run to confirm the target count before any packet leaves your laptop.
  • Export a clean list. The scanner writes one record per device, with details like IP address, MAC address, hostname, and vendor. Choose CSV for spreadsheets and imports, or JSON for scripts.

  • Import your device list. Bring the CSV into AssetLoom. Each live device becomes an asset record instead of a row in a file nobody opens again.
  • Assign an owner. Give every asset an owner and an assignment. When the mystery printer shows up in next quarter's scan, you already know which department to call.
  • Label the hardware. Generate QR code and barcode labels so the device on the desk matches the record on screen. Your team can check devices in and out with the AssetLoom mobile app.
  • Track the lifecycle. Keep each device's status and assignment in one place, from purchase to retirement.
  • Compare it with your MDM. Connect Microsoft Intune or Jamf Pro to sync your managed devices. Anything in your scan that's missing from that list deserves a conversation.

The scanner finds what's connected. AssetLoom keeps it accounted for.

Final Thoughts

Safe scanning in private space comes down to order. Rule out what isn't yours, map what you use, run a gateway census, then sweep only live subnets. Most of the risk is gone before the first packet leaves your laptop.

Map your private space first, then run your sweep with the AssetLoom Free Network Scanner and import the CSV into AssetLoom. That's how you scan private IP range safely.

FAQs

1. Is it legal to scan my company's private IP range?

Scanning your own network is normal IT work, but you still need written approval. Be careful with ranges reached through vendor tunnels or peering. Those belong to someone else, and scanning them without consent can break a contract or create legal problems.

2. How long does it take to scan 10.0.0.0/8?

At 100 addresses per second, a full sweep takes about 47 hours. A gateway census that checks only .1 and .254 in each /24 takes about 22 minutes.

3. Can I scan private IP range from the internet?

No. Private addresses aren't routable on the public internet. To scan private IP range safely, run the scan from inside the network, from a scanner at each site, or over a VPN connection.

4. Can I sweep IPv6 private ranges (ULA, fd00::/8) the same way?

No. A single IPv6 /64 subnet has far too many addresses to sweep. Use neighbor discovery, DHCPv6 leases, and router tables to find IPv6 devices instead.

5. What if our private ranges overlap with a vendor's or an acquired company's network?

You can still scan private IP range safely when ranges overlap. Scan each site with a local scanner and keep the results in separate jobs. Label every result set by site, so two devices with the same IP never end up in one record.

Top comments (0)