You can specify a port also:
user_pref("browser.ml.chat.hideLocalhost", false);
user_pref("browser.ml.chat.provider", "http://localhost:3000");