Use 0.0.0.0 instead of localhost as mpd server address.