Cannot Connect to Plexamp running Headless on Raspberry Pi

You correctly identified the issue. See here for the logic for a fix; happy to provide code changes if that would be helpful: Plexamp for Raspberry Pi - How to create a new server.json file now older desktop versions of Plexamp no longer work - #6 by IvanKaramazov