I just discovered that MacOS was blocking Firefox from connecting to devices on my LAN - there's per-app toggle in system settings.
Access to my router's web interface was not blocked (understandably) but this left me rather confused for a while.