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

Billy Boo Bob

macrumors 6502
Original poster
Jun 6, 2005
493
0
Dark Side Of The Moon
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.
 
I just assign each of mine a custom DNS name in /etc/hosts on each of my computers.

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).
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.