LuteOrg / lute-v3

LUTE = Learning Using Texts: learn languages through reading.
https://luteorg.github.io/lute-manual/
MIT License
491 stars 46 forks source link

Change default port #497

Closed cyugao closed 1 month ago

cyugao commented 1 month ago

Hi this is very minor, but for macOS users port 5000 is typically occupied by the system. See for example this post It would be nice if port 5000 could be avoided.

jzohrab commented 1 month ago

Hi there! You can specify a different port using the port startup flag.

jzohrab commented 1 month ago

Ref https://luteorg.github.io/lute-manual/usage/starting-and-stopping.html#pythonpip-startup-options

jzohrab commented 1 month ago

@cyugao - but you're right, it should be a better default port. Can you let me know what a good port number is that works in general for Windows/Mac/Linux variants?

cyugao commented 1 month ago

Yes, that's my intention. I guess whatever port would work. It's just that 5000 happens to be taken by MacOS system. Of course if in use we can always fall back to 5001, etc. See discussions here for example.

jzohrab commented 1 month ago

“Whatever port” — hopefully you can look into it and let me know what works on all machines.

(I’m asking instead of finding out myself because I need to figure out how to enlist more user support to solve problems for me, which would be immensely helpful!)

cyugao commented 1 month ago

I think 5001 is fine. Or maybe a random port like what you have in the doc 9876.

jzohrab commented 1 month ago

https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

image

5000 has lots of users, including Mac (which I ran into myself). 5001 does look like a better choice, let's go with that. Thanks :-)

jzohrab commented 1 month ago

Launched in 3.5.7.