Skip to content

Networks

The same server is rarely reached the same way from everywhere. At home, your file server is 192.168.20.20 on the LAN. From a coffee shop, the only way in is through a jump host. The address changes, the route changes, sometimes even the username or key changes, but it is still the same machine.

A network in ZestSSH is a named environment, such as “Home”, “Office” or “On the road”, that the app recognizes on its own and uses to decide how to reach each host. You save a host once, then say how it should be reached from each place. When you connect, ZestSSH works out where you are and applies the right settings.


Without networks, a host has one address, one port and one route. That leads to one of two habits:

  • Duplicate hosts. You save “File server (home)” at 192.168.20.20 and “File server (away)” at files.example.com through a jump host. Now you have two entries for one machine.
  • Constant editing. You keep one host and change its address every time you move between home and away.

Networks keep it to one host. The host holds a base config, the default. Each network can override only the parts that differ there. Everything you leave alone is taken from the base.


Three steps run every time you connect:

Step What happens
Detect ZestSSH reads the device’s IP addresses, its connection type and, where the system gives it, the Wi-Fi name.
Match Your networks are checked top to bottom. The first one with a matching trigger wins. If none matches, the built-in Default network is used.
Resolve The host’s base config is combined with that network’s override for the host (and the network’s own jump host, where it has one), giving the address, port, username, key and jump route that are used.

You do not pick the network by hand. On a phone or tablet you can force one if you need to (see Triggers and matching).

The same network settings are used when you duplicate or split a session, press Reconnect, when an automation task signs in to a saved host, and when Server Monitor checks a host.

Say you have a host called File server with the base address files.example.com and no jump host, and one network called Home that triggers on the subnet 192.168.20.0/24.

  • At home: your laptop has a 192.168.20.x address, so Home matches. File server’s override on Home says “address 192.168.20.20”. ZestSSH connects to the LAN address.
  • Anywhere else: Home does not match, so Default is used. File server has no override there, so it connects to files.example.com.

Concept What it is
Network A named environment with a color, an icon, one or more triggers and, if you like, a jump host for all its hosts.
Trigger A condition that makes a network match: an IP range (subnet), a Wi-Fi network name (on a computer only), being on cellular, or a connection type. A computer’s Simple editor calls them rules, under Detect when. See Triggers and matching.
Order Networks are checked top to bottom; the first match wins. You drag them to reorder.
Default network The built-in catch-all (“Used when no other network matches”). It always matches, is always last, and cannot be deleted.
Base config The host’s own address, port, key and jump route.
Override The changes one network makes for one host. See Per-host overrides.

The networks list, where you add networks and set their order:

  • Computer: Networks in the side rail, under Manage. The list is on the left (“Checked top to bottom. The first network whose rules match wins. Drag to reorder.”), with Filter networks and New network above it; the selected network’s editor is on the right, in Simple or Advanced mode, with Save network and Cancel. Each network’s row says when it matches (for example “When on cellular”), whether its hosts connect directly or through a jump host, and how many host rules it has; the one in use has Matched now, and Default says Always last.
  • Active now (computer): the card at the top of the list names the network in use and why (“It matched: the address is in 192.168.20.0/24.” or “Nothing else matched.”), where this computer is (“You’re on Wi-Fi “home-net”, 192.168.20.0/24.”), and Re-detect. Make a network for this Wi-Fi (or Make a network for this one) starts a new network with the Wi-Fi’s name, or the subnet, as its rule.
  • Phone or tablet: More > Networks. Add network adds one, and tapping a network opens its editor.

The current-network banner (phone or tablet). Once you have at least one network of your own, a banner at the top of the home screen shows which network is active and why it matched, with an Auto or Forced chip to force another. Tapping the banner opens the networks list. With only Default, the banner is hidden.

Per-host overrides live in each host’s editor, in its Networks section: on a computer in the editor’s Network section, on a phone under Advanced options. On a computer, a network’s editor also lists its Host rules (Simple) and has a Host overrides table (Advanced). See Per-host overrides.


Networks are optional. Out of the box there is only the Default network and every host uses its base config.

You will want networks when:

  • You reach the same machine by its LAN address at home and by its public address or a jump host when away.
  • You use a VPN that changes which addresses are reachable.
  • Some hosts should not be dialed at all on certain networks, for example a lab machine you never want to try over cellular.
  • You want a computer’s port forwards to start by themselves only on one network. That is set on the forward itself, with Run on network… on a computer’s Port forwarding page.

“A network stores my servers.” No. A network is an environment, not a list of hosts. It only changes how your existing hosts are reached while it is active.

“I have to pick my network every time.” No. Detection is automatic.

“Deleting a network deletes its hosts.” No. Deleting a network removes the network and the overrides hosts had for it. The hosts and their base configs stay.