=================== Windows virtual IoT =================== To start using the Windows virtual IoT: #. Make sure the computer runs an updated version of Windows (Windows 10 or Windows 11), whether it's a laptop, desktop, or server. #. :ref:`Install the Windows virtual IoT ` on the Windows computer. #. Connect your :doc:`devices ` to the Windows virtual IoT. #. :ref:`Configure the Windows Firewall `. #. :doc:`Connect the Windows virtual IoT to your Odoo database `. .. note:: - :abbr:`MRP (Material Requirement Planning)` devices, including cameras and measurement tools, are not compatible with Windows virtual IoT. - It is also possible to create a Windows Virtual Machine on a macOS/Linux computer. However, this option is not supported by Odoo, and no troubleshooting assistance will be provided. .. seealso:: :doc:`iot_advanced/troubleshooting` .. important:: Never make the Windows virtual IoT accessible from the public Internet. IoT systems are designed to provide your database with access to devices on your local network. Exposing them to the public Internet would create a **security risk**. .. _iot/windows-iot/installation: Installation ============ To install the Windows virtual IoT on a Windows computer: #. Access `Odoo's download page `_, scroll down to the :guilabel:`Virtual IOT` section, and click :guilabel:`Download`. #. Open the downloaded :file:`.exe` file, allow the app to make changes to your device, select a language, and click :guilabel:`OK`. #. Click :guilabel:`Next`, then :guilabel:`I Agree` to accept the terms and conditions and continue. #. Verify you have the required space on your computer and click :guilabel:`Next`. #. In the :guilabel:`Destination folder`, enter C:\\odoo and click :guilabel:`Install`. .. warning:: Do not install Odoo's Windows virtual IoT in any Windows user directory, as this can cause issues with :ref:`HTTPS certificate generation `. #. Set up GPL Ghostscript: Click :guilabel:`Next`, agree to the terms and conditions, click :guilabel:`Install`, then :guilabel:`Finish`. #. Click :guilabel:`Next` and :guilabel:`Finish` to complete the setup. The :ref:`IoT system's homepage ` automatically opens in a web browser with the URL `http://localhost:8069`. #. :ref:`Restart ` the Windows virtual IoT service. #. Check that you can access the :ref:`IoT system's homepage ` in a web browser: - on the Windows virtual IoT computer, and - on another device **on the same network as the IoT system** by navigating to the URL `http://xxx:8069` (where `xxx` is the IoT system's IP address). - on another device **on the same network as the IoT system** by navigating to the URL `https://xxx` (where `xxx` is the IoT system's IP address) to test for :ref:`HTTPS ` connection. .. tip:: If you cannot access the :ref:`IoT system's homepage ` from another device, create a :ref:`Windows Firewall ` rule to allow communication through port `8069`. Device connection ================= Most :doc:`devices ` automatically connect to the Windows computer used for the Windows Virtual IoT through `Windows Plug and Play (PnP) `_. However, if Windows does not recognize the device automatically upon connection, the administrator may need to manually install the appropriate drivers. .. tip:: After connecting the devices to the computer, refresh the :ref:`IoT system's homepage ` to verify that the device is listed. If the device does not appear, restart the IoT system from the :ref:`IoT system's homepage `. .. _iot/windows-iot/firewall: Windows Firewall configuration ============================== Firewalls help keep devices secure but can sometimes block legitimate connections. If the Windows virtual IoT isn't accessible on the :abbr:`LAN (Local Area Network)`, for example, from another device, it could be due to a firewall blocking the connection. To prevent this issue, configure exceptions for network discovery in the :abbr:`OS (Operating System)` or firewall settings. .. note:: If third-party firewall software is installed on the Windows computer, refer to the software's documentation to configure firewall exceptions. To create a rule on Windows Defender and allow communication through the required ports, follow these steps: #. Search the Windows start menu for `firewall` and select the :guilabel:`Windows Defender Firewall with Advanced Security` app. #. In the left part of the window, select :guilabel:`Inbound Rules`. #. In the right part of the window, under :guilabel:`Actions`, click :guilabel:`New Rule`. #. In the :guilabel:`New Inbound Rule Wizard` that opens, select the :guilabel:`Port` type of rule and click :guilabel:`Next`. #. On the :guilabel:`Protocols and Ports` page, make sure :guilabel:`TCP` and :guilabel:`Specified local ports` are selected, enter the following in the field: `8069, 80, 443`, and click :guilabel:`Next`. .. note:: Other ports may be required depending on your IoT devices. For example, add port `9050` for the :doc:`/applications/sales/point_of_sale/payment_methods/terminals/worldline_axepta` payment terminals. #. On the :guilabel:`Action` page, select :guilabel:`Allow the connection` and click :guilabel:`Next`. #. On the :guilabel:`Profile` page, disable any connection type(s) that don't apply to your Windows computer and click :guilabel:`Next`. #. On the :guilabel:`Name` page, provide a :guilabel:`Name` (e.g., `Odoo`) and, optionally, a brief :guilabel:`Description`, then click :guilabel:`Finish`. .. seealso:: `Windows Firewall rules documentation `_ .. _iot/windows-iot/homepage: Windows virtual IoT homepage ============================ To access the Windows virtual IoT's homepage, navigate to the URL `http://localhost:8069` on the Windows virtual IoT computer or open a web browser from another computer **on the same network as the IoT system** and navigate to the URL `http://xxx:8069` (where `xxx` is the IoT system's IP address). Once the Windows virtual IoT is :doc:`connected to the Odoo database `, its homepage can be accessed from Odoo by opening the IoT app, clicking the relevant IoT box's card, and clicking :guilabel:`Homepage`. .. image:: windows_iot/iot-windows-homepage.png :scale: 75% :alt: Windows virtual IoT's homepage .. note:: Make sure the :ref:`Windows Firewall is configured ` to allow access. .. _iot/windows_iot/restart: Windows virtual IoT restart =========================== To manually restart the Windows IoT server, search the Windows start menu for `services` and select the Services app. Scroll down to the :guilabel:`odoo-server-xxx` service, right-click it, and select :guilabel:`Start` or :guilabel:`Restart`. .. _iot/windows_iot/uninstall: Windows virtual IoT uninstall ============================= To uninstall the Windows virtual IoT, `uninstall `_ the Odoo program on your Windows computer. Confirm the uninstallation and complete the steps in the :guilabel:`Odoo Uninstall` dialog.