-
Notifications
You must be signed in to change notification settings - Fork 63
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
Port listening / IP interface #44
Comments
Ok, this shouldn't be too hard to implement. I'll do it asap, but i'm pretty busy these days. |
Hi @spyjo Just to make it clear what you want. For the second point, you want to force using a specific network interface or you want to mock the ip address? |
Yes choosing a specific network interface which have an other IP address, not faking the IP. |
I can force the listening port, but i wont be able to force the network interface, there are no way to do such things on java. |
in fetchIp() in ConnectionHandler.java, may be you can use an "force public IP" option to force a choosen ip instead of using the IP returned by one of the provider ? Since it seems that the IP returned by this function is used to be reported to the torrent tracker |
Yeah this is definely possible, but i believe this does not makes sense. Plus such a feature will be confusing for users, if you can choose a specific IP you'd expect it to be the ip address that will appear on the tracker, and this is not the case. |
It's doable almost everywhere, I would be surprised if Java doesn't have this option too. |
Some ways may exists if i would like to try digging in the code for every http, tcp and udp request that the program will ever made. And with the condition that every library that i use to do such request allow me to change the network interface. Such things are error prone for future development. If you were needing to filter the water coming to your home, would you be add a filter on each tap or a single one at the main pipe? https://stackoverflow.com/questions/49989230/setting-jvm-local-network-interface |
It'd be helpful to have customisable port number |
Hello,
I have installed joal on my dedicated server, and I have some suggests:
"Listening for incoming peer connections on port XXXX" => since I have a firewall on my server, it would be great to be able to choose this port manually in the configuration file, so I can open it in the firewall.
"Fetching ip from: http://ident.me/" , "Successfully fetch public IP address: XXXXX", "Ip reported to tracker will be XXXXX" => I have multiple IP addresses on my server, and in my case for my real Transmission server I have fixed one specific IP address. It would be great to be able to specify also the same IP address in joal configuration file, so others ips are not connected with torrents, and the seed would come from the same IP than the real client.
Thank you for your work :)
The text was updated successfully, but these errors were encountered: