Reign for Spofity allowed you to control a local Spotify instance from any device on the same local network. It was a free app and the source code is available on GitHub.

The Spotify remote for friends, colleagues, housemates and yourself that works in any browser.