Run Application as Windows Service
Table Of Content.
2. Setting PC SMS Gateway Server Application Running as Windows Service.
1.Overview
The SMSgee PC SMS Gateway Server support running as Windows Service.
When running as windows service, there are three components of the application.
1. Windows Service - PC SMS Gateway Server. The Windows Service is running independently from the GUI.
2. SMS Database. The SMS Windows Service and GUI connect to SMS Database using ADO Connection.
3. GUI - PC SMS Gateway Server. The GUI controlling the device on Windows Service - PC SMS Gateway Server , like "Starting" on stopping the "Device"
As described on Picture 1 each component of the application could be run on single PC or running on separate PC as described on the Picture 2.

Picture 1. Application component running on one PC.

Picture 2. Application components running on separate PC
2. Setting PC SMS Gateway Server Application Running as Windows Service
The step to run the application as windows service :
- Open "Application Settings"
- Installing PC SMS gateway Server Windows Service on localhost. Select the "SMS Server" Tab.
- Checked "Install as service" checkbox.
- Then the message box shows up "Install and start SMSgee PC SMS Gateway Server as Windows Service On 'localhost'", click yes to install.
- Port Number could be changed to any unused port number on the localhost.
- Password could be changed (ANSI character only)

- Case #1. Settings the GUI on same PC with the Windows Service.
- Open "Application Settings".
- Select the "Client Settings Tab" on "Application Settings"
- Checked "Connect to SMS Server" checkbox.
- Set "SMS Server Host" IP address with the 'localhost'.
- Set Port Number and Password of the PC SMS Gateway Server Windows Service. Port Number and Password should be match with the "PC SMS Gateway Server Windows Service - Service" on previous step.
- Checked the "Connect to SMS Server Database" Checkbox to connecting the SMS Database of PC SMS Gateway Server Windows Service, and set the "Database Connection Settings" with the parameter value same as on the SMS Database on SMS Server Settings

- Case #2. Settings the GUI on different PC with the Windows Service.
- Install the PC SMS Gateway Server on different PC.
- Open "Application Settings".
- Disable the 'Install as service'.
- Select the "Client Settings Tab" on "Application Settings"
- Checked "Connect to SMS Server" checkbox.
- Set "SMS Server Host" with IP address of the PC SMS Gateway Server Windows Service IP Adress. (in the example set with 192.168.0.1)

- Checked the "Connect to SMS Server Database" Checkbox to connecting the SMS Database of PC SMS Gateway Server Windows Service, and set the "Database Connection Settings" to connect the database used by the PC SMS Gateway Server Windows Service on remote computer.
- Close the "Application Settings". The device on Windows Service could be controlled from "Device on SMS Gateway Windows Service".
- Login to post comments

