Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to distribure via Internet #670

Open
hoschidude opened this issue Feb 2, 2025 · 1 comment
Open

How to distribure via Internet #670

hoschidude opened this issue Feb 2, 2025 · 1 comment

Comments

@hoschidude
Copy link

What if one wants to share machines over the internet ?

Its port 50051, is it ?

HD.

@TanishkBansode
Copy link

TanishkBansode commented Feb 3, 2025

From my understanding of the code i've read,
50051 is used only for testing in /test_udp_discovery.py and other test files with other ports(5052/3/4).
But in main.py it uses find_available_port function imported from helpers.py which selects port randomly from port 49152 to 65535, and avoids using same port again and again.

I even tried running sudo lsof -i -P -n | grep LISTEN(which tells which ports are in use) on my computer and run exo twice.
In first run,
exo 14131 tanishk 17u IPv6 130934 0t0 TCP *:64296 (LISTEN)
exo 14131 tanishk 18u IPv4 130938 0t0 TCP *:52415 (LISTEN)

In second run,
exo 14049 tanishk 17u IPv6 130772 0t0 TCP *:50969 (LISTEN)
exo 14049 tanishk 18u IPv4 130776 0t0 TCP *:52415 (LISTEN)

So you can see that the port got changed from port 64296 to 50969 when i reran it, so it's random.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants