Multiple patched ATVs (bonjour names)?

Discussion in 'Apple TV and Home Theater' started by Billy Boo Bob, Jan 12, 2009.

  1. Billy Boo Bob macrumors 6502

    Billy Boo Bob

    Joined:
    Jun 6, 2005
    Location:
    Dark Side Of The Moon
    #1
    I only have one ATV here so I can't test this. I'm wondering, for those of you who have run patchsticks on multiple ATVs, how they show up in bonjour listings?

    For instance, when running just one, you can ssh into appletv.local, but according to the rules of bonjour, there can only be one address with a given name. The first one discovered would get the name appletv.local, but I wonder what the next one would get. How do you ssh into your second one (assuming you go by name and not just use the IP address).

    TIA.
     
  2. hitekalex macrumors 68000

    hitekalex

    Joined:
    Feb 4, 2008
    Location:
    Chicago, USA
    #2
    I just assign each of mine a custom DNS name in /etc/hosts on each of my computers.
     
  3. Billy Boo Bob thread starter macrumors 6502

    Billy Boo Bob

    Joined:
    Jun 6, 2005
    Location:
    Dark Side Of The Moon
    #3
    Yeah. I've done that with the one here. It would be easier if /etc/hosts would recognize an entry like 'atv appletv.local', but it appears it wants IP addresses.

    But, the reason I'm asking is because I'm writing a little helper app. I might "put it out there" eventually, but right now it's pretty much an experiment (and a learning experience) for myself. I just figured that if I ever do polish it up for others that I would need to make provision for multiple ATVs.

    I'm also having to deal with switching between Ethernet and Airport, since I have nephews living with me and they keep hijacking the Ethernet line for their PS3. Generally no problem, but if I happen to want in by ssh, all my command-line shortcuts break and I have to make a change in /etc/hosts (or just skip it for now and go with the .local name).
     
  4. LDH macrumors newbie

    Joined:
    Aug 21, 2004
    #4
    Just SSH in and run these commands:

    sudo scutil –set LocalHostName new_name
    sudo scutil –set ComputerName new_name

    The first command sets the Bonjour name so the :apple:TV is now available at new_name.local. The second command sets the sharing name so that it'll appear as "new_name" in the Finder sidebar. These names can be different from each other, but I'm not sure there's any reason why someone would want to do that.
     

Share This Page