There is a windows-application on the computers of employees of the company, allowing to work with the web-application database only in the local network of the company’s office, and only when the “host computer” is running (the main application).

In general, this application can do a lot of things, but the rest of the functionality has already been rewritten to a web application, and therefore the question of getting rid of the program, which has only one plus, is put: control over employees so that they can work web-application only sitting in the office.

So, in what way (s) (s) can it be organized on a website?

Considering that the office has a dynamic IP address!

    2 answers 2

    In this situation, there are 2 more or less reliable options.

    1. If the server with the web application is on the same network, then you can allow access to it only from internal addresses;
    2. If the server with the web application is outside the local network, then create a VPN. Further see item 1.

    Something like this...

      so that they can work with the web-application only sitting in the office.

      1. Configure a web server to work only on local IP
      2. If you have a web server - apache - then you can create a .htaccess file in the root of the site with a range of allowed IPs (for example, 192.168. *. *)

        Order deny,allow Deny from all Allow from 192.168.*.*