Comments (6)
network.port_open
is a boolean setting, used for turning on or off the port entirely. network.port_range.set=static_port-static_port
is the correct way to set a static port. See https://kannibalox.github.io/rtorrent-docs/cmd-ref.html#network-commands for more details.
from rtorrent.
network.port_open
is a boolean setting, used for turning on or off the port entirely.network.port_range.set=static_port-static_port
is the correct way to set a static port. See https://kannibalox.github.io/rtorrent-docs/cmd-ref.html#network-commands for more details.
I know and I had exactly used that. used like as the following
network.port_open = yes
network.port_open.set = 41200
but nothing happens.
And I know the range trick works but still on the UI it’s showing 41200-41200
I mean why a single static port will be shown like this. with a hyphen in the middle. Isn’t it we can use another config to set the static port in a more correct manner rather than setting it as a range set which is not for static at all? and what is the network.port_open.set config is doing actually then?
from rtorrent.
network.port_open = yes
network.port_open.set = 41200
network.port_open
is used to query whether or not the value is true, as such it ignores the "yes" and changes nothing. network.port_open.set = 41200
enables the port, since rTorrent considers any non-zero value to be the same as "yes". "yes" is the default, so it still doesn't actually change anything.
I mean why a single static port will be shown like this. with a hyphen in the middle. Isn’t it we can use another config to set the static port in a more correct manner rather than setting it as a range set which is not for static at all? and what is the network.port_open.set config is doing actually then?
It's just a quirk of rtorrent, any kind of new configuration option to set a single port would just be a convenience function that does the exact same thing as network.port_range.set=41200-41200
. I'm not sure what you mean when you say it's not static at all. rTorrent will trying to listen on port 41200, and if it's already being listened on, rTorrent will exit with an error message.
from rtorrent.
network.port_open = yes
network.port_open.set = 41200
network.port_open
is used to query whether or not the value is true, as such it ignores the "yes" and changes nothing.network.port_open.set = 41200
enables the port, since rTorrent considers any non-zero value to be the same as "yes". "yes" is the default, so it still doesn't actually change anything.I mean why a single static port will be shown like this. with a hyphen in the middle. Isn’t it we can use another config to set the static port in a more correct manner rather than setting it as a range set which is not for static at all? and what is the network.port_open.set config is doing actually then?
It's just a quirk of rtorrent, any kind of new configuration option to set a single port would just be a convenience function that does the exact same thing as
network.port_range.set=41200-41200
. I'm not sure what you mean when you say it's not static at all. rTorrent will trying to listen on port 41200, and if it's already being listened on, rTorrent will exit with an error message.
Ok I see. Thanks a lot. But I still couldn't grab the purpose of the network.port_open.set configuration option. that what does it do if network.port_range.set is basically setting the incoming port always.
from rtorrent.
If for some reason you wanted to completely disable the listening port, you can't do that via network.port_range.set
. You'd need to do network.port_open.set = no
.
from rtorrent.
If for some reason you wanted to completely disable the listening port, you can't do that via
network.port_range.set
. You'd need to donetwork.port_open.set = no
.
Oh OK I see. that means network.port_open and network.port_open.set are the same. the latter is just an alias of the previous one. So it's a boolean value whether we want to turn off the listening port or not. I see. thanks a lot, bro for the explanation.
from rtorrent.
Related Issues (20)
- Crash Error: Success Signal code '2': Non-existent physical address. HOT 1
- Build fails with LTO HOT 8
- what process should I do on Debian 11? HOT 1
- [Bug Report] [Failure reason \"This client is not allowed...] HOT 3
- Zero peer/seeds after restart HOT 1
- Ratio Groups - seed time - discrepancy between rTor and tracker
- A new release? HOT 3
- Actual up to date build instrunctions, please?? HOT 2
- Default rtorrent settings HOT 2
- Buffer overflow bug on Ubuntu 24.04 HOT 12
- Option to release inactive file descriptors automatically after some time
- libxmlrpc_util.so.3: cannot open shared object file HOT 2
- Segfault when rTorrent runs on pretty busy drive
- Crash om startup, FreeBSD 14.1 HOT 2
- handshake_log does not work HOT 1
- New release? HOT 11
- Curl 8.9.0 causes 100% cpu use HOT 6
- Buffer overflow rtorrent 0.9.8 HOT 11
- rtorrent sporadically stops with return code 141 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtorrent.