Provide passwordless access to an MPD server for clients within whitelisted ranges.
Setting up MPD
Set up MPD to run on a non-standard port. I use 6601 rather than the default 6600.
Clone this repository
config.coffee and edit it to give the real
MPD's host, port and password, the port the proxy server should run on and the
IP address ranges which should have passwordless access.
- Start a foreground session with
coffee mpdproxy.coffeeto test.
- Connect to MPD on the proxy's host and port from whitelisted and non-whitelisted IPs. You shouldn't be asked for a password from whitelisted IPs but should be from non-whitelisted IPs. Some basic information is logged to the console.
- Quit (control-c).
Running a daemon
npm start starts the proxy daemonized. It logs to
Running at startup
One way to do this is to put a line like this in your
su - youruser -c 'cd /path/to/mpdproxy && npm start'
Bart Nagel email@example.com