After looking through more forum posts and Luban FAQ/Support but couldn’t find anything like this for Windows. My main reason for wanting to specify the port is because I want to use the web version + custom CSS code to show the print/cut progress on my in-house stream. To do this I need to load an extension and through using Chrome + Create Shortcut in new windows this is possible but with the constantly changing port after a reboot of Luban this can’t really be automated.
Can anyone give me some insight on how to force Luban to a specific port on Windows?
I also tried running Luban in the WSL Debian but it refuses to install dependencies and only removes Luban, which I am guessing has to do with it being a non GUI version of Debian. If someone can point me to fixing one of the issues above so I can have Luban run on a specific port that would be greatly appreciated.
Have you tried invoking Luban with the appropriate parameters from the Windows command prompt (or through a batch file)? Does it still pick a random port?
I did try the startup parameters on the executable but that didn’t work. I’ll try the commandline tomorrow. Should have thought about that before… I tend to just be a basic user when it comes to Windows
After some more tinkering, I couldn’t get Windows to read the -p or /p command, neither through CMD nor through a .bat/.cmd file.
BUT that did make me snoop through the files from Luban to see if I could force the port manually. And low and behold the 2nd file I opened was my prize.
C:\Program Files\Snapmaker Luban\resources\app\server-cli.js on line 31 it says 0 : 8000 changing the 0 to my desired port (60122) Luban will automatically launch on that port and my shortcut seems to work as intended, no more accepting the connection on the Snapmakers touchscreen.
Now on to getting Luban to be accessible over the network so I can use it but also monitor if needed from a central point