Making Connector setup easier on Chrome OS

edited April 21, 2020
As originally documented by @jackyko1991, getting the Zotero Connector to talk to Zotero on a Chromebook requires setting up port forwarding.

Does anyone know more about the port issue? It seems like that still applies in current versions, but what's the actual issue? Most ports just aren't forwarded between Chrome OS and Linux apps? 23119 is specifically blocked for some reason? Short of using 8080, is there anything we could do in the Linux build (or the .deb maintained by @emilianoeheyns) to fix this? (The Zotero Connector defaults to 23119, so changing that isn't really an option.)

At the very least, if we could detect Chrome OS, we could maybe show a warning on first run with a link to instructions, with a checkbox to not show again. I'm not sure exactly how we'd even do that detection, though. Can someone on a Chromebook paste the result of running Services.appinfo in Tools → Developer → Run JavaScript in Zotero? If there's nothing promising-looking in there, is there a file we can check — e.g., return await Zotero.File.getContents('/path/to/something/helpful')?
  • Port 8080 is not a must, I think corstini VM firewall only allow certain ports to communicate outside, e.g. port 80, 8080, 22, 23, etc.

    I can't find the full list of available port by Chromeos Linux VM. If you are using port 8080 (which I think you are using it for webpage development), try other uncommon ports to see if it works.

  • edited April 21, 2020
    Well, again, we can't really change the port, unless both Zotero and the Zotero Connector can reliably detect that they're on Chrome OS and default to one of the allowed ports.

    I'm not optimistic, but I guess I'd be curious what the result is for browser.runtime.getPlatformInfo().then(x => console.log(x)) in the Console of the Zotero Connector's background page, which you can access from the Extensions pane of the Chrome preferences with "Developer mode" turned on.

    And I'd still be interested in the answer to my question above about Zotero itself.
Sign In or Register to comment.