Server

How to set up server

ManicTimeServer is in a zip file, download it and copy contents to some folder.

ManicTimeServer.exe has the following options:

  • ManicTimeServer install - Install ManicTimeServer as a service
  • ManicTimeServer createdb - Create the database
  • ManicTimeServer upgradedb - Use when upgrading to a newer version of the server
  • ManicTimeServer addadmin - Use to add admin
  • ManicTimeServer start - Start service
  • ManicTimeServer stop - Stop service
  • ManicTimeServer uninstall - Uninstall service

Running server for the first time

Open up the console, go to the folder where you copied it. Run the following commands:


    ManicTimeServer createdb
    ManicTimeServer

ManicTimeServer should now be running. You can check it by visiting http://localhost:8080/ with a browser.

Now let's run it as a service. Go to the console and type Esc to stop the server. Then run


    ManicTimeServer start

This will install ManicTimeServer as a service and run it. You should now see it in Administrative tools -> Services.
By default ManicTime Server is set to run on 8080 port (you can change it in ManicTimeServer.exe.config).

Configure firewall

If you are connecting from other machines on the network, you will have to configure the firewall to allow outside connections to port 8080. If you are using Windows firewall, you can open Command prompt with Administrator privileges and then run the following command:

 

netsh advfirewall firewall add rule name=ManicTimeServer protocol=TCP dir=in localport=8080 action=allow

Alternately you can also add an exception via Control panel:

  1. Open start menu, type 'firewall'. Choose Windows firewall with advanced security
  2. Right click Inbound rules, choose New rule
  3. For rule type choose port and click next
  4. Choose TCP and for specific port write 8080
  5. Choose allow the connection
  6. Leave all checked
  7. For rule name type 'ManicTime Server'

Server database

By default ManicTimeServer will use SQL CE as a database. Database will be generated in /Data subfolder. If more than three ManicTime instances will connect to it, we recommend that you use SQL Server as a database.