Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bobber205

macrumors 68020
Original poster
Nov 15, 2005
2,182
1
Oregon
For a php page, I want to be able to ping local lan area Mac addresses of the other two macs in the house. Basically to see if they're on or off (is a newb ;) ).

When searching, I ran across ARPING. But I cannot seem to use it correctly. I keep getting errors like this one.

Code:
arping 00:17:f2:3f:2d:8f
arping: libnet_get_ipaddr4(libnet): libnet_get_ipaddr4(): ioctl(): Can't assign requested address

hmm. I don't know what the means. I am certain I have the mac addresses written right.

Any suggestions on what I should do?
 

bobber205

macrumors 68020
Original poster
Nov 15, 2005
2,182
1
Oregon
Because IP addresses change sometimes. Though I could do that in this case.
(BTW how do you ping just once?)

The main reason is because a co-worker at work as able to do it... so I should be able too ;)
 

jsw

Moderator emeritus
Mar 16, 2004
22,910
44
Andover, MA
bobber205 said:
Because IP addresses change sometimes. Though I could do that in this case.
(BTW how do you ping just once?)

The main reason is because a co-worker at work as able to do it... so I should be able too ;)
If you select "Using DCHP with manual address" as a TCP/IP option in System Preferences...->Network, you can ensure they're always the same.

Also, to ping once, just use "ping -c 1 [address]".
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.