### Local usage ###

1) Make sure that eiskaltdcpp-daemon is built with JSON-RPC support
   (see -DJSONRPC_DAEMON=ON configuration option).

Then check that you launch daemon on correct network interface. For example:

$ eiskaltdcpp-daemon -L 192.168.0.132 -d

Or, if you want to use all available interfaces:

$ eiskaltdcpp-daemon -L 0.0.0.0 -d

But this is less secure.

2) Clone eiskaltdcpp-web into any directory. For example:

$ cd /home/user/
$ git clone https://github.com/eiskaltdcpp/eiskaltdcpp-web

3) Edit config.js file. For example:

$ cd /home/user/eiskaltdcpp-web/
$ nano config.js

Here your should set the IP address of remote computer where eiskaltdcpp-daemon
is launched. Related string will look like this:

            "host" : "192.168.0.132",

4) Open index.html file in any modern web browser which you like. For example,
   in Mozilla Firefox or Google Chrome.


### Remote usage ###

1) Make sure that eiskaltdcpp-daemon is built with JSON-RPC support
   (see -DJSONRPC_DAEMON=ON configuration option).

Then check that you launch daemon on correct network interface. For example:

$ eiskaltdcpp-daemon -L 192.168.0.132 -d

Or, if you want to use all available interfaces:

$ eiskaltdcpp-daemon -L 0.0.0.0 -d

But this is less secure.

2) Clone eiskaltdcpp-web into any directory. For example:

$ git clone https://github.com/eiskaltdcpp/eiskaltdcpp-web
$ sudo mv eiskaltdcpp-web /usr/share/

3) Edit config.js file. For example:

$ cd /usr/share/eiskaltdcpp-web/
$ sudo nano config.js

Here your should set the IP address of remote computer where eiskaltdcpp-daemon
is launched. Related string will look like this:

            "host" : "192.168.0.132",

4) Install any web-server which you like and configure it. For example:

$ sudo nano /etc/nginx/sites-enabled/default

Content may look like this:

server {
    listen   80 default;
    listen   [::]:80 default;

    location / {
        root /usr/share/eiskaltdcpp-web;
        index index.html;
    }
}

$ sudo systemctl restart nginx.service 

5) Now EiskaltDC++ Web UI should be reachable at: http://<ip>/
   If you use the same remote computer for eiskaltdcpp-web and for
   eiskaltdcpp-daemon, in our example above it will be: http://192.168.0.132/

