Lots of Problems Pinging Mac Addresses

Discussion in 'Mac Programming' started by bobber205, Aug 25, 2006.

  1. macrumors 68020

    bobber205

    Joined:
    Nov 15, 2005
    Location:
    Oregon
    #1
    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?
     
  2. jsw
    Moderator emeritus

    jsw

    Joined:
    Mar 16, 2004
    Location:
    Andover, MA
    #2
    Just out of curiosity, why don't you just ping their IP addresses?
     
  3. thread starter macrumors 68020

    bobber205

    Joined:
    Nov 15, 2005
    Location:
    Oregon
    #3
    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 ;)
     
  4. jsw
    Moderator emeritus

    jsw

    Joined:
    Mar 16, 2004
    Location:
    Andover, MA
    #4
    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]".
     
  5. thread starter macrumors 68020

    bobber205

    Joined:
    Nov 15, 2005
    Location:
    Oregon
    #5
    Well gosh. :rolleyes:

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

Share This Page