[SOLVED] Curl from command line - Connection Refused

Hi all,

I built a nice case for my Volumio box and I have included some buttons on top for Presets. I created some single entry playlists and plan to map GPIO’s to run a command like:
curl “http://192.168.1.2/api/v1/commands/?cmd=playplaylist&name=Example” The REST API seems the easiest way to issue this basic command.

The command works just fine if I do it from any other linux box in the house, but when I run it from the volumio server via ssh, I get “connection refused”. If I can make this work from the command line, it will be a simple task to accomplish my preset goal. I’ve tried using the ip, loopback address, the host name, localhost…all get connection refused.

Any ideas to get this working?

Thanks!

Try with curl localhost:3000/api/v1/commands/yourcommand

That did it. Thank you!