git-learning-game / oh-my-git

An interactive Git learning game!
https://ohmygit.org
Other
2.04k stars 146 forks source link

Bind to port 1234 is fragile #157

Open xim opened 1 year ago

xim commented 1 year ago

I have another piece of software that binds to port 1234.

That breaks the "fake-editor" script. A solution might be to bind to port 0, which gives you a random ephemeral port.

You could then expose that port number through an environment variable.

xim commented 1 year ago

I looked at doing this. It seems hard, as the get_local_port() method on TCP_Server wasn't backported from Godot 4.0 to 3.x branches...

xim commented 1 year ago

These binds can be fixed if and when godotengine/godot#68129 is included in godot.