Questions tagged [arp]

ARP is a protocol for resolution of network layer addresses such as IP into link layer addresses (such as MAC addresses). "arp" is also a command in Linux and Windows to manipulate the ARP cache.

Address Resolution Protocol (ARP) is a telecommunications protocol used for resolution of network layer addresses into link layer addresses, a critical function in multiple-access networks. ARP was defined by RFC826 in 1982.
It is also the name of the program for manipulating these addresses in most operating systems.

603 questions
67
votes
14 answers

Send a ping to each IP on a subnet

Is there a command line based way to send pings to each computer in a subnet? Like for(int i = 1; i < 254; i++) ping(192.168.1.i); to enforce arp resolution?
bot47
  • 1,458
  • 3
  • 18
  • 36
37
votes
4 answers

Configuring ARP age timeout

I am trying to configure the ARP age timeout. I think I should set /proc/sys/net/ipv4/neigh/default/base_reachable_time_ms to the desired timeout. But although I set this to 30000ms (30sec) it still takes close to 10mins for an entry to get removed…
Thomas
  • 489
  • 1
  • 8
  • 13
31
votes
4 answers

How do I access ARP-protocol information through .NET?

I try to figure out which devices are online and which are offline in our LAN. I have seen many programs doing a kind of graphical network overview, presenting LAN IP and MAC addresses. I would like to know if and how those (ARP?) information can…
BerggreenDK
  • 4,915
  • 9
  • 39
  • 61
25
votes
1 answer

Any way to change the behavior of synchronous Windows API SendARP?

I'm writing a local network scanner on Windows to find online hosts with IP Helper Functions, which is equivalent to nmap -PR but without WinPcap. I know SendARP will block and send arp request 3 times if the remote host doesn't respond, so I use…
jfly
  • 7,715
  • 3
  • 35
  • 65
18
votes
4 answers

Get IP from MAC address. arp -a not showing device

I'm trying to write a batch file that's supposed to find the dynamically assigned IP of my Android phone when it's connected to the network (Tenda WiFi router). So I'm trying arp -a and searching for my phone's MAC address so I can get its IP from…
SouPress
  • 295
  • 1
  • 2
  • 12
17
votes
3 answers

Why should I use, or not use, MSG_CONFIRM?

I am acquainting with BSD sockets, and flicking through the man page of sendto, I bumped into MSG_CONFIRM flag, which is quite mysterious to me at the moment. The description says: Tell the link layer that forward progress happened: you got a …
qdii
  • 12,505
  • 10
  • 59
  • 116
15
votes
1 answer

Python arp sniffing raw socket no reply packets

to understand the network concepts a bit better and to improve my python skills I am trying to implement a packet sniffer with python. I have just started to learn python, so the code could be optimized of course ;) I have implemented an packet…
user3325230
  • 507
  • 1
  • 6
  • 19
13
votes
5 answers

How to ping MAC address in Linux

I want to ping a known MAC address, I tried to use nmap: sudo nmap -sP 192.168.15.1/24 | grep 20:64:32:3F:B1:A9 But in this case its ping all the 255 IP address (from 192.168.15.1 to 192.168.15.255) until get my MAC address, and that take a long…
Linux
  • 325
  • 2
  • 6
  • 17
11
votes
2 answers

Registry key location for security update and Hotfixes

In my application i want to query the Security update and Hotfixes on windows box. For this i have queried the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Everything went well on the OS other than windows 2008 server and…
Devloper
  • 219
  • 2
  • 5
  • 12
10
votes
3 answers

How do I query the ARP table on iPhone?

I am new on iPhone development, and I want to integrate wake-on-lan into my application without squeezing my users to enter the computers MAC address when the IP is already known. I googled for about some hours, took the source code of an ARP tool,…
anthony vage
  • 311
  • 1
  • 2
  • 9
9
votes
1 answer

Is there a workaround for broken ARP entries caused by setting net.inet.ip.scopedroute=0 on MacOS?

Okay, here's my problem. Please forgive me as it's a little bit complicated. I'm almost 100% sure it's caused by a MacOS 10.6 kernel bug, but since we can't count on the bug being fixed, I need a workaround. I learned earlier that "ipfw ... fwd"…
apenwarr
  • 10,838
  • 6
  • 47
  • 58
9
votes
3 answers

Is there a way to send ARP request via Java?

Is there a way to send ARP request within a Java application? I know that ARP is sitting a layer under TCP and UDP therefore by default Java couldn't send ARP request. I am just wondering is there any 3rd party Java library that will allow you to…
beyonddc
  • 1,246
  • 3
  • 13
  • 26
9
votes
2 answers

ARP Requests on iPhone

I'm trying to generate ARP (Address Resolution Protocol) request packets on the iPhone and listen for the associated responses that come back. Google searches have led me into a dead-end. In order to send logical-layer packets, I'd need something…
8
votes
1 answer

What's the strategy of iPhone/Android responding to ARP request

When I use arping to send ARP request(I know a sleeping iPhone doesn't reply to ICMP ping) to sleeping iPhones/Androids(means they are on but the screen is dark) connected on the same wifi, the iPhone replies to me like this: ARPING…
jfly
  • 7,715
  • 3
  • 35
  • 65
8
votes
1 answer

List ALL devices on local network?

I have tried arp -a a lot and it has listed some devices, but not all of them. ifconfig shows my ip address and mac address and some other useful information, but it doesn't show all of the devices on the local network. Is there a command that shows…
Robert Moore
  • 2,207
  • 4
  • 22
  • 41
1
2 3
40 41