Editing host files
#1
Hello,

Had issues with xbmc hanging up to main screen and have added the following 3 lines to host file

echo "127.0.0.1 appldnld.apple.com" >> /etc/hosts
echo "127.0.0.1 mesu.apple.com" >> /etc/hosts
echo "127.0.0.1 appldnld.apple.com.edgesuite.net" >> /etc/hosts


now when I ping mesu aapple com from winscp i get the following

private/var/root$ ping mesu.apple.com
PING a97.g.akamai.net (64.39.179.54): 56 data bytes
64 bytes from 64.39.179.54: icmp_seq=0 ttl=58 time=12.101 ms
64 bytes from 64.39.179.54: icmp_seq=1 ttl=58 time=19.069 ms
64 bytes from 64.39.179.54: icmp_seq=2 ttl=58 time=18.894 ms
64 bytes from 64.39.179.54: icmp_seq=3 ttl=58 time=12.967 ms
--- a97.g.akamai.net ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 12.101/15.758/19.069/3.239 ms


I have read somewhere i should be getting 127.0.0.1 am I still doing something wrong can somebody who has added this lines to host file try to ping and see what they are receiving ??


thanks a lot for all your support..
Reply
#2
do one more

Code:
echo "" >> /etc/hosts

for adding a empty line at the end of the file - and after that reboot and try the ping again. I've added this info to the corresponding wiki entry also.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
and just to make sure it looks right.

cat /etc/hosts and see that the entries look like this.

Code:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost
127.0.0.1 appldnld.apple.com
127.0.0.1 mesu.apple.com
127.0.0.1 appldnld.apple.com.edgesuite.net
Reply
#4
ok I HAVE EDITED MY windows/system32/drivers/etc now looks like this exactly..

echo "127.0.0.1 appldnld.apple.com" >> /etc/hosts
echo "127.0.0.1 mesu.apple.com" >> /etc/hosts
echo "127.0.0.1 appldnld.apple.com.edgesuite.net" >> /etc/hosts
echo "" >> /etc/hosts


rebooted pple tv and tried pinging as foolows

ping mesu.apple.com and this is the reply I am getting back..

private/var/root$ ping mesu.apple.com
PING a97.g.akamai.net (72.246.43.24): 56 data bytes
64 bytes from 72.246.43.24: icmp_seq=0 ttl=59 time=12.856 ms
64 bytes from 72.246.43.24: icmp_seq=1 ttl=59 time=11.974 ms
64 bytes from 72.246.43.24: icmp_seq=2 ttl=59 time=12.548 ms
64 bytes from 72.246.43.24: icmp_seq=3 ttl=59 time=11.827 ms
--- a97.g.akamai.net ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 11.827/12.301/12.856/0.419 ms

Still not looking correct I though I am suppossed to be getting back 127.0.0.1...


Also Stevellion I dont undersand your comment cat /etc/hosts and see that the entries look like this. Is this adifferent dirrcetory than windows/system32/drivers/etc ??

Thanks for your assistance take care
Reply
#5
elmo1855 Wrote:ok I HAVE EDITED MY windows/system32/drivers/etc now looks like this exactly..

echo "127.0.0.1 appldnld.apple.com" >> /etc/hosts
echo "127.0.0.1 mesu.apple.com" >> /etc/hosts
echo "127.0.0.1 appldnld.apple.com.edgesuite.net" >> /etc/hosts
echo "" >> /etc/hosts


rebooted pple tv and tried pinging as foolows

ping mesu.apple.com and this is the reply I am getting back..

private/var/root$ ping mesu.apple.com
PING a97.g.akamai.net (72.246.43.24): 56 data bytes
64 bytes from 72.246.43.24: icmp_seq=0 ttl=59 time=12.856 ms
64 bytes from 72.246.43.24: icmp_seq=1 ttl=59 time=11.974 ms
64 bytes from 72.246.43.24: icmp_seq=2 ttl=59 time=12.548 ms
64 bytes from 72.246.43.24: icmp_seq=3 ttl=59 time=11.827 ms
--- a97.g.akamai.net ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 11.827/12.301/12.856/0.419 ms

Still not looking correct I though I am suppossed to be getting back 127.0.0.1...


Also Stevellion I dont undersand your comment cat /etc/hosts and see that the entries look like this. Is this adifferent dirrcetory than windows/system32/drivers/etc ??

Thanks for your assistance take care

You don't have to edit the hosts file on your windows mashine but on your appletv2 dude ...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#6
Ok sorry still a newbie please bear with me ..here is what i did..

on my laptop went to the following folder

c/windows/system32/drivers/etc/hosts

then edited the host as follows..echo "127.0.0.1 appldnld.apple.com" >> /etc/hosts
echo "127.0.0.1 mesu.apple.com" >> /etc/hosts
echo "127.0.0.1 appldnld.apple.com.edgesuite.net" >> /etc/hosts
echo "" >> /etc/hosts



then saved and rebooted apple tv did I do something wrong ??

ca u please explain step by step I am really sorry for nay inconvenvinience..
Reply
#7
The file on your laptop will do nothing for the ATV2.

You have to edit a file that exists on the ATV2.

Open Putty on your laptop and follow this guide:

http://forum.xbmc.org/showpost.php?p=748981&postcount=1
Reply
#8
And also .. those echo's are commands to 'perform' the edit on your hosts file.
your host file should look like the one I posted.

ie. they are the commands to update your hosts file. not what should be IN the hosts file.

so. ssh using putty or something onto your atv
type:
cat /etc/hosts

if it doesn't look like mine, then copy/paste each of the lines below and hit return after each line.

echo "127.0.0.1 appldnld.apple.com" >> /etc/hosts
echo "127.0.0.1 mesu.apple.com" >> /etc/hosts
echo "127.0.0.1 appldnld.apple.com.edgesuite.net" >> /etc/hosts
echo "" >> /etc/hosts

Then
cat /etc/hosts
And it should have
127.0.0.1 appldnld.apple.com
127.0.0.1 mesu.apple.com
127.0.0.1 appldnld.apple.com.edgesuite.net
at the bottom of it.
Reply
#9
Thanks a lot finally got it fixed really really thanks appreciate everybodys help..
Reply

Logout Mark Read Team Forum Stats Members Help
Editing host files0