I've looked into that annoying random port binding issue on Windows: it looks like OpenHands' default port ranges fall inside Windows' default ephemeral range (49152‑65535). That's why the binding randomly fails and why restarting the winnat service is the only thing that fixes it.
I suggest using different defaults on Windows and also (related), if it doesn't break anything, updating the config entries for the vscode/app/work ports to accept ranges (including the execution server, now missing).