# Simpleconnect + settings.xml

**URL:** <https://forum.kirupa.com/t/simpleconnect-settings-xml/253945>\
**Category:** Uncategorized\
**Created:** [March 6, 2008, 5:56pm UTC](https://forum.kirupa.com/t/simpleconnect-settings-xml/253945 "2008-03-06T17:56:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrchips](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mrchips](https://forum.kirupa.com/u/mrchips)\
**Post date:** [March 6, 2008, 5:56pm UTC](https://forum.kirupa.com/t/simpleconnect-settings-xml/253945/1 "2008-03-06T17:56:39Z")

</div>

> [FONT=Geneva, Arial, Helvetica, sans-serif][SIZE=2] **To load the server name from an XML file:** [/SIZE][/FONT][FONT=Geneva, Arial, Helvetica, san-serif][SIZE=2] **1** [/SIZE][/FONT][FONT=Geneva, Arial, Helvetica, sans-serif][SIZE=2]In your application’s FLA file, click the SimpleConnect component and open the Property Inspector.[/SIZE][/FONT][FONT=Geneva, Arial, Helvetica, san-serif][SIZE=2]\*\*  
> 2\*\*[/SIZE][/FONT][FONT=Geneva, Arial, Helvetica, sans-serif][SIZE=2]In the Application Directory box, enter the following string:[/SIZE][/FONT]fromXML/appName[/appinstanceName/][FONT=Geneva, Arial, Helvetica, sans-serif][SIZE=2]The"fromXML" string replaces the “rtmp:/[/servername]/” string.[/SIZE][/FONT]  
> [FONT=Geneva, Arial, Helvetica, san-serif][SIZE=2] **3** [/SIZE][/FONT][FONT=Geneva, Arial, Helvetica, sans-serif][SIZE=2]In the directory that contains the SWF file for your application, create a file called settings.xml. This XML file has the following format:[/SIZE][/FONT]\<appSetting\>\<serverName\>myServerName\</serverName\>\</appSettings\>[FONT=Geneva, Arial, Helvetica, sans-serif][SIZE=2]where myServerName is an IP address or domain name, such as [flashcom.mydomain.com](http://flashcom.mydomain.com) or 10.60.0.124.  
> Do not specify RTMP or RTMPT here, only the address of the server to connect to (SimpleConnect will use RTMP and try RTMPT if needed).[/SIZE][/FONT]  
> [FONT=Geneva, Arial, Helvetica, sans-serif][SIZE=2]If you leave ServerName blank, SimpleConnect uses the relative path rtmp:/appName/[appinstanceName/] to connect. For more information on relative paths, see the topic “Designing for portability across servers” in the “Application Development Tips and Tricks” chapter of Developing Communication Applications Help.[/SIZE][/FONT]  
> [FONT=Geneva, Arial, Helvetica, sans-serif][SIZE=2]Once the XML file is set up, if your server name changes, simply edit the settings.xml file. No changes to the application’s FLA or SWF files are needed.[/SIZE][/FONT]

First time poster here and looking for some guidance. The above text lifted from adobe live docs seems simple enough but wont play ball for me.

Im editing as

> fromXML/test[/test66/]  
> and

> \<appSetting\>\<serverName\>81.xxx.xx.226\</serverName\>\</appSettings\>  
> Why could this be failing for me?

many thx+great forum 🙂
