Replies: 1 comment
-
It seems that you're running an older version of the library which uses the fixed ports 39031 and 39041, but the newer version indeed uses random ports to avoid collisions with other programs on your machine. I don't have any experience with Ubuntu for Windows, unfortunately, so I can't help you with the port forwarding, but if you add a logger to the Ableton instance, it will tell you where the port files are located. As long as the ports are free, both ableton-js and its Live plugin will try to reuse the ports stored in these files. You can then try to forward those ports between Windows and the Ubuntu subsystem. const ableton = new Ableton({ logger: console });
await ableton.start(); The output should look something like this:
When you load the plugin, you should also see the port that it uses to listen to messages from ableton-js in Live's status bar: |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm trying to run a script that uses ableton-js in Ubuntu For Windows to communicate with the Ableton instance runing on the same Windows machine.
The script itself is very simple - i'm just trying to verify connectivity:
This results in the following error:
I'm guessing I've got to set up some kind of port forwarding between the Ubuntu and Windows systems? I was about to try port forwarding on 39041 and 39031 but then I read in the readme:
Which makes it seem like the solution might be more complicated? Do I need to do some more configuration so that this local file can be accessed by both systems? If so, can anyone point me to the part of the code that I might need to update or modify? If code changes are required, I'd be happy to put together a PR to add this functionality as a configuration option!
Beta Was this translation helpful? Give feedback.
All reactions