Do you know you can connect Cynics Accounting client and POS remotely from a dial-up connection? Let me show you the scenario…
The Cynics Server can be configure with SQL server on the same machine or differently, if differently, you just need to setup the proper connection string in the CSAccountSvr.exe.config
<connectionStrings>
<!–connectionString=”Data Source=.\SQLEXPRESS;Initial Catalog=CSAccountDB;Integrated Security=True”–>
<add name=”CSAccountDatabaseIntf.My.MySettings.CSAccountDBConnectionString”
connectionString=”Data Source=.\SQLEXPRESS;Initial Catalog=CSAccountDB;Integrated Security=True” <== This is the line
providerName=”System.Data.SqlClient” />
</connectionStrings>
Notice the line, connectionString, just change it to any standard connection string that connect SQL Server 2005 or SQL Server 2005 Express.
On the client site, locate CynicsAccounting.exe.config file and find the line below:
<client displayName=”CSSystemManager”>
<wellknown displayName=”CSSystemManager” type=”CSAccountDatabaseIntf.ICSAccountDatabaseIntf, CSAccountDatabaseIntf” url=”tcp://localhost:5000/CSSystemManager.rem”/>
</client>
Notice the url=”tcp://localhost:5000…”, change the localhost to your address in the remote server machine.
For example your server IP address is 192.168.1.100 then the line will be:
<wellknown displayName=”CSSystemManager” type=”CSAccountDatabaseIntf.ICSAccountDatabaseIntf, CSAccountDatabaseIntf” url=”tcp://192.168.1.100:5000/CSSystemManager.rem”/>
If you cannot connect after changing the address, please check your server firewall settings, remember to open port 5000.
Now on the POS client site, locate CSPOSClient.exe.config file, and find the line below:
<client displayName=”CSSystemManager”>
<wellknown displayName=”CSSystemManager” type=”CSAccountDatabaseIntf.ICSAccountDatabaseIntf, CSAccountDatabaseIntf” url=”tcp://localhost:5000/CSSystemManager.rem”/>
</client>
Change the url=”tcp://localhost:5000…” to the IP address where the server located.
If you cannot connect after changing the address, please check your server firewall settings, remember to open port 5000.
To change the settings at design time, locate app.config in CSAccountSvr project, CynicsAccounting Project and CSPOSClient Project. Normally you don’t need to modify these files, because you need default settings to run on the same machine.
The best way to test the setup is download the demo from DEMO TRIAL, try the settings and if everything successful, then try your modified and compiled source code.
If you have further question, please do not hesitate to contact us.