Skip to main content

ipscan banner

ipscan

Fast IP scanner — multithreaded Ping and ARP scanning (Windows, Linux, macOS)

PyPI version Python OS License

Language: English · 繁體中文 · 简体中文 · 日本語 · 한국어 · Deutsch · Français · Italiano · Español · Português BR · Русский


Table of contents

  • Quick start
  • Features
  • CLI tools
  • Python API
  • Performance notes
  • Requirements
  • Contributing

Quick start

Install from PyPI:

pip install ipscan

Windows users: Install optional Windows-optimized ping support:

pip install "ipscan[windows]"

Note: Linux users — see Linux Setup below for best performance.

CLI

fping           # High-speed continuous ping (interactive)
sping           # Simple range ping scan
sarp            # ARP range scan

Python API

Ping scan:

from ipscan import ping_range, PingScanner

online_hosts = ping_range("192.168.1.1", "192.168.1.254")

scanner = PingScanner(timeout=1.0)
results = scanner.scan_range("10.0.0.1", "10.0.0.100")

ARP scan:

from ipscan import arp_range, ArpScanner

host_info = arp_range("192.168.1.1", "192.168.1.254")
for ip, mac in host_info.items():
        print(f"{ip} -> {mac}")

scanner = ArpScanner()
results = scanner.scan_range("10.0.0.1", "10.0.0.100")

Features

  • Cross-platform: Windows, Linux, macOS support with automatic OS detection
  • Multithreaded scanning: High-speed concurrent operations
  • Smart implementations: Platform-optimized for best performance
    • Windows: Native SendARP API + ping3 library
    • Linux: Direct scapy ARP packets + system ping
    • macOS: System arp + ping commands
  • Simple API: Unified interface across all platforms
  • Progress tracking: Real-time progress bars and clean output

For best performance on Linux, grant Python raw socket capabilities:

# Enable fast Ping scanning (raw ICMP socket, ~100x faster)
sudo setcap cap_net_raw+ep $(readlink -f $(which python3))

# Enable fast Ping + ARP scanning
sudo setcap cap_net_raw,cap_net_admin+ep $(readlink -f $(which python3))

Without this step:

  • Ping scanning still works but falls back to subprocess (slower)
  • ARP scanning requires sudo to run

To remove the capability (restore default):

sudo setcap -r $(readlink -f $(which python3))

Note: This only needs to be done once per Python installation. If using a virtualenv, run the command against the venv's Python binary.

Platform Details

Feature Windows Linux macOS
Ping scanning ping3 library raw ICMP socket (with setcap) / system ping (fallback) system ping
ARP scanning SendARP API scapy packets arp command
Permissions No special permissions setcap recommended (see above) No special permissions
Performance Optimized Optimized (with setcap) Good

Usage Examples

Linux ARP scanning (requires sudo)

sudo sarp
# Enter IP range when prompted

High-speed continuous ping

fping
# Enter target IP and interval

Range ping scanning

sping
# Enter start and end IP addresses

Requirements

  • Python 3.7+
  • Cross-platform support: Windows, Linux, macOS
  • Dependencies:
    • tqdm (progress bars)
    • scapy (ARP packet generation)
    • ping3 (Windows optimization, optional)

Contributing

Issues and PRs are welcome. If you like this project, consider starring it.


Made with ❤️ for network tinkerers.

Metadata

Release files for ipscan 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipscan 1.4.0
File Size Uploaded Provenance Actions
ipscan-1.4.0.tar.gz 15.5 kB Without provenance Details for ipscan-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ipscan 1.4.0
File Interpreter ABI Platform Actions
ipscan-1.4.0-py3-none-any.whl Python 3 none any Details for ipscan-1.4.0-py3-none-any.whl

Total release size: 31.4 kB

Release files / ipscan-1.4.0.tar.gz

Download URL ipscan-1.4.0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16cf845a2af09235e86017fd84fe2139907114959b5a3eca0eaa7563a381188b
BLAKE2b-256 checksum
How to use checksums
581b7fa8d0eea9c29d1875288d29eeae33b3336a856e0bf0e89df99caa42b4a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / ipscan-1.4.0-py3-none-any.whl

Download URL ipscan-1.4.0-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a9684f9ca4c7f10d5c99578071fc09c7810eba14d745dc9aa878d606ba8d90c
BLAKE2b-256 checksum
How to use checksums
ccc80a384d7f3effd43d4d30d4d4fd6bde73f312d4b2adabd258583c8fd7dc98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for ipscan 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page