2012-07-14 31 views

回答

1

基本上,localhost是指127.0.0.1指的是回环ip,它是ipod本身,所以除非你在[DNS(本例中为10.0.0.100)]中改变[localhost来解析IP地址]/hosts文件),您的ipod正在使用您的连接设置解析域名,我不建议这样做。

以下是需要改变主机在你的iPod文件的步骤(我警告你已经这不是一件好事,除非你知道你在做什么)

来源:https://discussions.apple.com/thread/2801892?start=0&tstart=0

简单的解决方案:

的HOSTFILE位于:/ etc/hosts中

要如果你知道如何做到这一点直接只使用vi或nano可编辑的文件编辑这个文件,你需要SSH到您的设备。从Windows使用WinSCP通过FTP(SSH)访问文件系统。然后,只需导航到/ etc/hosts下载文件到桌面,右键单击并用记事本打开它,将解析器添加到最后一行“192.168.0.100 testserver”,保存并用新文件替换原始文件。

的/ etc /主机 - 例如配置

# 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 

192.168.0.100  testserver 

* ssh到一个iPod必须已经安装OpenSSH的,通常这需要一个越狱。

+0

谢谢alsayed,非常有帮助! – user1525612 2012-07-14 18:58:07