Skip to main content

A class which sends an ARP Request to know if a host is online on local networks

Project description


ArpRequest is a Python module designed to make an ARP gratuitous request to know if a host is online. It acts on OSI model’s level 2 unlike icmp echo (ping), so, you can use it without IP configuration, or to “ping” an host in other IP network. However, you can only use it on local networks.


>>> from arprequest import ArpRequest
>>> ar = ArpRequest('', 'eth0')
>>> ar.request()
>>> ar2 = ArpRequest('', 'eth0') # doesen't exist
>>> ar2.request()


0.3 :

  • You can now select type of ARP request. This is done with “arp_type” argument of ArpRequest class. You can use arprequest.ARP_GRATUITOUS to make an ARP Gratuitous request (what is currently done) or use arprequest.ARP_STANDARD to do a standard ARP request.

    This option was created to use this library with systems which are configured to block Arp Gratuitous.


  • ArpRequest work only on unix or unix-like platforms because it uses unix signals.
  • ArpRequest work only as root, because it uses raw sockets.
  • Module is commented in french. I will translate comments in english, some day…

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for arprequest, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size arprequest-0.3-py2.6.egg (6.0 kB) File type Egg Python version 2.6 Upload date Hashes View
Filename, size arprequest-0.3.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page