Connect the Data Synchronization Channel Through a Relay Server

To enable your client application to connect through a relay server, you must make manual configuration changes in the object API code to provide the relay server properties.

Edit SUP101DB by modifying the values of the relay server properties for your Relay Server environment.

ConnectionProfile syncProfile = SUP101DB.GetSynchronizationProfile();
syncProfile.ServerName = "examplexp-vm1";
syncProfile.PortNumber = 80;
syncProfile.NetworkProtocol = "http";
NetworkStreamParams streamParams = GetSynchronizationProfile().StreamParams;
streamParams.Url_Suffix = "/cli/iarelayserver/<FarmName>";
GetSynchronizationProfile().setDomainName("default");

To update properties for the relay server installed on Internet Information Services (IIS) on Microsoft Windows:

ConnectionProfile syncProfile = SUP101DB.GetSynchronizationProfile();
syncProfile.ServerName = "examplexp-vm1";
syncProfile.PortNumber = 80;
syncProfile.NetworkProtocol = "http";
NetworkStreamParams streamParams = GetSynchronizationProfile().StreamParams;
streamParams.Url_Suffix = "/ias_relay_server/client/rs_client.dll/<FarmName>";
GetSynchronizationProfile().setDomainName("default");

For more information on relay server configuration, see System Administration and Sybase Control Center for Unwired Server.