PDA

View Full Version : Lots of Problems Pinging Mac Addresses




bobber205
Aug 25, 2006, 07:30 PM
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.


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?



jsw
Aug 25, 2006, 07:35 PM
Just out of curiosity, why don't you just ping their IP addresses?

bobber205
Aug 25, 2006, 07:38 PM
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
Aug 25, 2006, 08:18 PM
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]".

bobber205
Aug 25, 2006, 08:31 PM
Well gosh. :rolleyes:

I had the arguments going after address. D'oh!