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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making use of multiple relay ports #178
Comments
|
Wow, this is very interesting, thanks for explaining!
Same happens with IP btw, with regard to copy-pasting the command as is:
|
Yeah, this is a easy fix, will try 9009 before it complains 馃憤 |
Questions got answered, improvements got implemented, closing 馃槃 |
I might be misunderstanding something here, let me know 馃檪
I noticed that relay is listening on 5 different ports, namely
9009-9013
.When I do
croc send file1
, I also see thatcroc
opens all 4 ports on my local machine.Question 1: Why are 4 ports being opened locally? Isn't it enough for the local
croc
to use a single port to access the relay? I imagine it would easily be possible to let localcroc:9009
connect torelay:9012
if necessary.Question 2: Why does relay open 4 ports? Is it to load balance connections? But then it doesn't seem so, if someone sends me a file via
9009
port, I cannot receive it via the same relay but via9010
port, I getsecuring channel...unexpected end of JSON input
.Question 3: Why does receiver need to specify port at all? If they run
croc --relay myrelay.com my-code
, the app will crash withmissing port in address
- I think given that ports are known,croc
should in this case try all 4 ports by itself (and iterate viaRelayPorts
in config), and figure out which one works.The text was updated successfully, but these errors were encountered: