Use Devolutions CLI behind a firewall or proxy
Devolutions CLI itself makes outgoing HTTPS requests to the Devolutions Cloud and Devolutions Server addresses you sign in to, plus Devolutions Account for a browser sign-in to Devolutions Cloud. It doesn't wait for connections from other computers. On a locked-down network or a build agent, that's usually all you need to open.
What Devolutions CLI connects to
A Devolutions Cloud context
The address you gave with --cloud, for every command that uses this context.
Browser sign-in to Devolutions Cloud (--oauth)
Also https://login.devolutions.com, to sign you in, renew your session, and read your profile. Devolutions CLI refuses sign-in addresses that this service returns on another host.
A Devolutions Server context
The address you gave with --server, for every command that uses this context, including browser sign-in. Devolutions CLI refuses sign-in addresses that your Devolutions Server returns on another host.
A local profile context
No address of its own: a local profile is read from a folder on your computer.
devo info --cloud <url> or --server <url>
That address, without a saved context.
Every connection uses HTTPS. Devolutions CLI refuses a plain http address unless it points at your own computer.
The telemetry preference (devo config telemetry) is only saved on your computer: Devolutions CLI has no telemetry connection of its own.
Write the firewall rule
Allow outgoing HTTPS from the agent or computer to the address and port of each workspace URL, and to
login.devolutions.comif you use browser sign-in to Devolutions Cloud.Allow the
devofile (devo.exeon Windows) if your firewall filters by program. The commands you type and the background process that sends most requests to your workspace are the same file. See How Devolutions CLI works.Open no inbound port. Devolutions CLI doesn't need any port opened for incoming connections.
Why no inbound port is needed
Background process
Over a local channel on your computer: a named pipe on Windows, a socket file on macOS and Linux. On Windows, the pipe's access rules allow your account and the system account (if Windows refuses those rules, the pipe keeps its default security); on macOS and Linux, only your account can open the socket file. Every request other than a status check must also carry the token of the current background process session. See Devolutions CLI on Windows, macOS, and Linux.
devo mcp
Over the standard input and output of the devo process that your AI client starts. No port.
Browser sign-in (--oauth)
Your browser returns to devo through a temporary listener on your own computer, open for at most 5 minutes. For Devolutions Cloud, it listens on localhost, on a port between 60370 and 61370. For Devolutions Server, it listens on 127.0.0.1, on a free port. Devolutions CLI refuses to start the listener if localhost doesn't point only at your own computer.
Device code sign-in (--oauth --use-device-code)
No listener at all. Devolutions CLI prints an address and a code, and waits while you confirm the sign-in in a browser. Use it on a computer without a browser.
Set the request timeout
By default, Devolutions CLI waits up to 15 seconds for each request. On a slow link or through a busy proxy, give devo login more time with --timeout, in seconds, from 3 to 600:
--timeout applies to the requests of that devo login only. It isn't saved in the context: later commands wait up to 15 seconds per request. A request that runs out of time fails with cloudRequestTimeout or serverRequestTimeout. See Sign-in fails or the session expired.
Windows authentication
With --windows-auth, Devolutions CLI signs in to Devolutions Server with the credentials of the Windows account that runs devo. You don't give a password, and the background process uses the same account. This option is available on Windows only.
Proxies
Devolutions CLI has no proxy option, and doesn't set a proxy of its own.
If your network requires a proxy, check that the computer can reach your workspace address through it before you sign in, for example with devo info --cloud <url> or devo info --server <url>.
Certificates
Devolutions CLI has no option to skip certificate validation or to add a certificate, and doesn't change how certificates are validated.
Good to know
A local profile context doesn't sign in to any address. See Use a local Devolutions Remote Desktop Manager profile.
To see what Devolutions CLI sends, and what stays on your computer, see What data Devolutions CLI sends.
If a sign-in times out or the address can't be reached, see Sign-in fails or the session expired.
Next
Last updated
Was this helpful?