At a glance: You will edit two AmigaDOS scripts — S:WHDLoad-Startup and S:WHDLoad-Cleanup — add a tiny ARexx helper, and test the result from a Shell. Ten minutes’ work, and WHDLoad will never again throw a network error at you just because Miami was not running.
Every long-term Amiga user knows the ritual. You install a TCP stack — Miami, Miami Deluxe, Genesis, AmiTCP or Roadshow — because telnetting into a BBS or pulling files from Aminet on real hardware is half the fun of a networked classic machine. Then you double-click a WHDLoad game, and the illusion collapses: a freeze, a guru, or WHDLoad’s own error requester complaining about the state of the system. The culprit is not a bug in your game install. It is the oldest conflict on the platform, and the fix is a small piece of defensive scripting that this guide walks through in full.

Why WHDLoad and TCP stacks fight
WHDLoad’s whole trick is taking over the machine. When a slave starts, WHDLoad freezes the operating system, saves its state, and gives the game the bare hardware — which is why games that originally demanded a clean boot floppy can run from your hard drive, quit back to Workbench, and behave identically on an A500 or a turbocharged A4000. Anything else that owns a piece of that hardware fights the takeover. A running TCP stack is exactly such a tenant: it holds an open device driver (your Ethernet or serial driver), fields interrupts as packets arrive, and keeps timers and tasks alive in the background. Leave Miami online when a slave starts and you are asking two landlords to occupy the same flat.
The official WHDLoad documentation has always been blunt about this: network and USB stacks should be shut down before a slave starts, and restarted afterwards. WHDLoad even provides the hooks to automate it. Whenever a game launches, WHDLoad first executes the script S:WHDLoad-Startup if it exists; when the game quits, it executes S:WHDLoad-Cleanup. Whatever your stack needs — offline before, online after — belongs in those two files.
The obvious fix, and why it nags you
Miami exposes an ARexx port, and the natural one-liner is to tell it to go offline from the Startup script, and back online from Cleanup. That works — right up until the day Miami is not running at all. ARexx commands are addressed to ports, and if the port named MIAMI.1 does not exist because you never launched Miami this session, the RX command fails, the script errors out, and WHDLoad surfaces the failure as an error requester before your game even starts. You have traded a crash for a nag, and the nag appears precisely on the days you did everything right.
The correct approach is to ask first. ARexx’s built-in SHOW() function can test whether a port exists before you talk to it. Rather than cramming the test into a fragile one-liner, the cleanest solution is a pair of tiny ARexx scripts that your Startup and Cleanup files call. They take two minutes to create and they never complain.
Step 1: Create the ARexx helpers
Open your favourite text editor and save the following as Rexx:WHDLoadMiamiOffline.rexx:
/* Park Miami before WHDLoad takes the machine */
IF SHOW('P', 'MIAMI.1') THEN DO
ADDRESS 'MIAMI.1'
OFFLINE
END
EXIT 0
And this one as Rexx:WHDLoadMiamiOnline.rexx:
/* Bring Miami back after WHDLoad hands the machine back */
IF SHOW('P', 'MIAMI.1') THEN DO
ADDRESS 'MIAMI.1'
ONLINE
END
EXIT 0
Walk through what the offline script actually does. SHOW(‘P’, ‘MIAMI.1’) queries the system port list — the ‘P’ selects ports — and returns true only when Miami is genuinely resident. If it is, ADDRESS switches the command destination to Miami’s own port and OFFLINE is sent as a native Miami ARexx command, taking the stack gracefully down: interfaces closed, driver released, routes withdrawn. If Miami is absent, the script simply exits with code 0. No error, no requester, no drama. Note the helper returns success either way, which is what keeps WHDLoad’s script error reporting silent.
Step 2: Wire up WHDLoad-Startup and WHDLoad-Cleanup
Now edit S:WHDLoad-Startup, creating it if it does not exist yet, and add this line near the top, before anything else you may already run there:
RX Rexx:WHDLoadMiamiOffline.rexx
And in S:WHDLoad-Cleanup:
RX Rexx:WHDLoadMiamiOnline.rexx
Three practical details matter here. First, script files in S: should carry the script protection bit so AmigaDOS treats them as executable scripts — check with List S:WHDLoad-Startup and fix with Protect S:WHDLoad-Startup +s if needed. Second, if your Startup script already contains commands (many users park their USB stack there too), order matters: take the network down first, then anything else. Third, Miami Deluxe uses the same MIAMI.1 port name, so the scripts above work unchanged; if you run Miami under a different configured ARexx port name — rare, but possible — substitute your port name in the helpers.
Before you start: is ARexx even awake?
There is one precondition that catches out more users than every other step combined: ARexx itself must be running. ARexx is not part of the base AmigaOS kernel — it is provided by a background process called RexxMast, and the RX command is just a messenger that talks to it. If RexxMast was never started, your carefully written helpers will fail with an error that points at everything except the real problem. Most systems start RexxMast from the User-Startup or the WBStartup drawer, and if your machine came from a pre-built CF card image it is almost certainly already running. Check before you build anything on top of it: open a Shell and run RX "SAY SHOWLIST('P')". A list of port names means ARexx is alive. An error — typically complaining that the host environment is unavailable — means it is not. Start it with Run >NIL: SYS:System/RexxMast >NIL: and, if you want it permanently, drop RexxMast into WBStartup or add that line to your User-Startup. WHDLoad’s scripts run under your normal system configuration, so whatever state RexxMast is in when you double-click a game is the state your helpers will find.
Step 3: Test it properly before trusting it
Do not test by launching a game and hoping. Test in a Shell, in both states:
- Quit Miami completely. Run
RX Rexx:WHDLoadMiamiOffline.rexx. It should return instantly with no output and no error. CheckSTATUSor simply note the clean prompt. - Launch Miami and go online. Run the same command. Miami’s interface should drop — check its control panel or try
pingbefore and after to watch the link die. - Run
RX Rexx:WHDLoadMiamiOnline.rexxand confirm Miami reconnects and traffic flows again. - Only then launch a WHDLoad game with Miami online, quit back to Workbench with the slave’s quit key, and confirm the stack is back up and your next Aminet session works.
If the offline script ever appears to do nothing while Miami is running, the usual suspect is a mismatched port name: list the system’s ports from ARexx by running a one-off RX "SAY SHOWLIST('P')" in a Shell and look for the MIAMI entry, then match the helper to what you actually see.
Troubleshooting: the four failures everyone meets
The game launches, but the network is still up. Your Startup script is not being executed at all. Confirm the filename character for character — it is WHDLoad-Startup, in S:, with the script bit set. A file called WHDLoad-Startup.txt from an editor that appends extensions is the single most common cause. Also confirm you have not disabled startup scripts in your global WHDLoad configuration (the WHDLoad.prefs file in S: can carry options that affect script execution).
WHDLoad shows an error requester mentioning the script. Something inside the script returned a non-zero code. Run each line of it manually from a Shell, in order, until one of them complains — that is your culprit. Nine times out of ten it is either RexxMast not running (see the section above) or a hard-coded path that does not exist on your system. The helper scripts in this guide return 0 on every path precisely so they can never be this culprit.
Miami goes offline, but never comes back. Your Cleanup script is not running, or the online helper runs while Miami has already been quit by something else. Note the symmetry of the design: the online helper also checks the port first, so if Miami has exited entirely there is nothing to bring back — ONLINE only makes sense against a resident stack. If you habitually quit Miami rather than parking it offline, the correct Cleanup behaviour is to relaunch it instead; substitute a launch line for the RX call on systems where that is your workflow.
One specific game still crashes with the network down. Then the stack was never your problem for that title. Some slaves are sensitive to other residents — input helpers, screen promoters, certain patches in your Startup-Sequence. WHDLoad’s own documentation lists the usual suspects, and the cleanest diagnostic is to test the same slave from a minimal boot (hold both mouse buttons, boot with no Startup-Sequence, and work up from there). The network scripts remain worth having regardless: they remove the single most common variable from every future diagnosis.
The same pattern for other stacks
The principle generalises, because this was never really about Miami. Every stack that can collide with WHDLoad needs an off switch in the Startup script and an on switch in Cleanup — the only thing that changes is the mechanism. Genesis, the stack bundled with OS 3.9, has its own ARexx support and answers to similar commands, so the port-test pattern transfers directly once you know its port name. Roadshow, the modern commercial stack, has no ARexx port in the same style; instead, shut it down in the Startup script with its shell-level network commands (bringing interfaces down with the configuration tools it ships) and raise them again in Cleanup. Poseidon, the USB stack, is the other classic WHDLoad antagonist: the WHDLoad documentation recommends stopping it in the same scripts, using the stack’s own offline facilities — the Trident preferences or its shell commands — before a slave starts.
On today’s typical setups — an A1200 with a PCMCIA network card, WHDLoad 18/19.x, and a frontend like iGame launching hundreds of slaves — the pattern scales beautifully. Your Startup and Cleanup scripts become the single, boring, invisible place where the machine politely rearranges itself around each game. That invisibility is the point. The original version of this guide circulated as a single forum tip about one ARexx test; nearly a decade on, WHDLoad installs have only grown more networked, with FTP daemons, SAMBA shares and Discord bridges hanging off classic machines. The conflict is more relevant than ever — and the fix is still the same two little scripts, asking politely before speaking.
