oh-my-git icon indicating copy to clipboard operation
oh-my-git copied to clipboard

Bind to port 1234 is fragile

Open xim opened this issue 3 years ago • 2 comments

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 avatar Nov 01 '22 13:11 xim

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 avatar Nov 01 '22 14:11 xim

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

xim avatar Nov 02 '22 22:11 xim