1. HunterIP's Avatar
    hi expert iPhone,

    i have a big problem when write apps on Window to change device configuration especially devicename. so i need to know what file on iPhone contain this information(Device name) to modify it.

    please help me!
    2009-03-11 10:48 AM
  2. reddawg's Avatar
    i have a big problem when write apps on Window to change device configuration especially devicename. so i need to know what file on iPhone contain this information(Device name) to modify it.
    That information can be found in:

    /private/var/preferences/SystemConfiguration/preferences.plist

    The preferences.plist file is XML formatted configuration file that contains network configuration information on your iPhone.

    Code:
    <key>System</key>
    <dict>
    	<key>Network</key>
    	<dict>
    		<key>HostNames</key>
    		<dict>
    			<key>LocalHostName</key>
    			<string>CHANGEME</string>
    		</dict>
    	</dict>
    	<key>System</key>
    	<dict>
    		<key>ComputerName</key>
    		<string>CHANGEME</string>
    		<key>ComputerNameEncoding</key>
    		<integer>134217984</integer>
    		<key>HostName</key>
    		<string>CHANGEME</string>
    	</dict>
    </dict>
    2009-03-13 06:45 AM
  3. HunterIP's Avatar
    Thank for your reply,

    i changed it, but nothing happen on my iPhone, change couldn't change
    2009-03-13 07:53 AM
  4. reddawg's Avatar
    It appears that you can only set or change the hostname by changing it from iTunes. I know that this process changes the hostname and computer name in the preferences.plist file. Apparently you can not manually edit preferences.plist to change the hostname and computername because it gets reset after restarting.

    Other than iTunes, does anyone else know how to change the hostname from editing a configuration file?
    2009-03-14 11:39 PM
LINK TO POST COPIED TO CLIPBOARD