startup script before connection starts

Got a problem with Viscosity or need help? Ask here!


Posts: 1
Joined: Thu May 27, 2021 7:28 pm

Post by dewoer » Thu May 27, 2021 7:46 pm

The documentation states that scripts (.bat and .vbs) can be run "when your connection connects or disconnects".
Is it possible to have a script run *before* a connection is setup?
It would be very useful, to allow laptops to start connections based on the topology, on where they are (e.g. at home, or at the office).
Same question for Mac.

Thank you,


User avatar
Posts: 1089
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Fri May 28, 2021 10:37 am
Hi Chris,

You can set conditional connections in the Before Connect script that will allow you to abort the connection attempt if certain conditions aren't met in your script - ... nnections/

Beyond this, you will need to detect your conditions using another method outside Viscosity, then you can tell Viscosity to connect or disconnect based on those conditions externally: ... g-windows/ ... cript-mac/

Eric Thorpe
Viscosity Developer

2 posts Page 1 of 1