2012-07-14 33 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