Versão em Português (clique aqui) 

Remotely is a powerful open-source solution for remote support, device management, and technical assistance. With robust features like remote control, file transfer, and monitoring, Remotely is an efficient alternative to many paid solutions, such as AnyDesk and TeamViewer.



The server installation for Remotely is simple, and the full details can be found in the official documentation. However, if you need to use Remotely agents on devices that access the internet through a proxy, you must correctly set up the environment variables, both on Ubuntu and Windows 11.

Proxy Configuration on Ubuntu

If the Remotely agents are behind a proxy on Ubuntu, you need to configure the service file in systemd to set the environment variables.

1. Edit the Service File

Locate and edit the agent's service file:

sudo nano /etc/systemd/system/remotely-agent.service

2. Add Proxy Environment Variables

In the [Service] section, add the following lines:

[Service]
Environment="HTTP_PROXY=http://192.168.0.1:8080"
Environment="HTTPS_PROXY=http://192.168.0.1:8080"
Environment="NO_PROXY=localhost,127.0.0.1"

Replace 192.168.0.1:8080 with your proxy details.

3. Reload and Restart the Service

After saving the changes, reload the systemd settings and restart the service:

sudo systemctl daemon-reload
sudo systemctl restart remotely-agent.service

4. Check the Service Status

Ensure the agent is running properly:

sudo systemctl status remotely-agent.service

Proxy Configuration on Windows 11

On Windows 11, environment variables must also be set correctly for the Remotely agent to communicate when behind a proxy. Here is the process for setting up proxy environment variables:

1. Open the Environment Variables Menu

  • Press Win + S and search for "Environment Variables".
  • Select "Edit the system environment variables".
  • In the "System Properties" window, click on "Environment Variables".


2. Add Proxy Variables

In the "System Variables" section, add the following variables:

  • HTTP_PROXY
    Value: http://192.168.0.1:8080
  • HTTPS_PROXY
    Value: http://192.168.0.1:8080
  • NO_PROXY (optional, if you need exceptions)
    Value: localhost,127.0.0.1

To do this, follow these steps:

  • Click "New" to add a new variable.
  • Enter the variable name (HTTP_PROXY) and the value as indicated.
  • Repeat for the other variables.

3. Apply the Changes

After adding the variables, click "OK" on all open windows to save the changes. It is also recommended to restart the system to ensure all applications use the new proxy settings.

4. Test the Proxy

One way to test if the settings are correct is to open the Command Prompt and use the curl command:

curl -x http://192.168.0.1:8080 http://example.com

This command should return the page content, confirming that the proxy is working as expected.

Final Considerations

Proper configuration of proxy environment variables is crucial for the proper functioning of Remotely agents in controlled environments. On Ubuntu, the configuration is done directly in systemd, while on Windows 11 it can be done through the system environment variables.

For more information on advanced configurations, refer to the official Remotely documentation.

https://github.com/immense/Remotely