|   | 17 | === Installing the web service on the same machine as the Windows client | 
          
          
            |   | 18 | * Install .net 7 Core. | 
          
          
            |   | 19 | * Move the folder {{{djAI}}} to //Documents// or another suitable folder where you have write permission. | 
          
          
            |   | 20 | * The service runs, by default, on port 5000. If you want to change the port, edit the file {{{djAI\run_djAI.cmd}}} and change the port accordingly. Do not change the IP address in local installations: | 
          
          
            |   | 21 |  {{{ | 
          
          
            |   | 22 | dotnet djAI.dll --urls http://127.0.0.1:5000 | 
          
          
            |   | 23 | }}} | 
          
          
            |   | 24 |  | 
          
          
            |   | 25 | === Installing the web service on a server | 
          
          
            |   | 26 | * Install .net 7 Core. | 
          
          
            |   | 27 | * Move the folder {{{djAI}}} to a suitable folder. | 
          
          
            |   | 28 | * Edit the file {{{run_djAI.cmd}}} in the {{{djAI}}} folder and change the loopback IP {{{127.0.0.1}}} to the IP address you want the service to listen to. You can also change the port, if required: | 
          
          
            |   | 29 |  {{{ | 
          
          
            |   | 30 | dotnet djAI.dll --urls http://127.0.0.1:5000 | 
          
          
            |   | 31 | }}} | 
          
          
            |   | 32 | * Configure the service to start on system reboot: | 
          
          
            |   | 33 |  * **Linux:** Run {{{crontab -e}}} and add the following line: | 
          
          
            |   | 34 |   {{{ | 
          
          
            |   | 35 | @reboot /path/to/djAI/run_djAI.cmd | 
          
          
            |   | 36 | }}} | 
          
          
            |   | 37 |  * **Windows:** Use //Scheduled tasks// to configure automatic start.  | 
          
          
            |   | 38 |  |