JOSM has to be started before you can use these URLs. JOSM will open port 8112 as a server to receive commands via https.
I didn’t change anything in the Java Control Panel.
Franz