Main Configuration
Configuration System
ServerRawler uses a folder where all configuration files are stored. The folder is named config.
If you run ServerRawler fist time, it will automatically create a config.toml file with default values in the root directory of your project.
It should look like this:
config.toml
# ServerRawler configuration file
# Github: https://github.com/Cyberdolfi/ServerRawler
# Read the docs here: https://cyberdolfi.github.io/ServerRawler/docs/configuration/config
[crawler]
ips_per_iteration = 1000000
max_tasks = 0
time_between_iteration = 0
[scanner]
max_tasks = 0
[general]
max_network_tasks = 2000
ping_timeout = 3000
query_timeout = 3000
join_timeout = 3000
do_uuid_fetch = true
default_ports = [25565]
Simply, fill in the correct values for your crawling and scanning needs and save the file.
Crawler Configuration
ips_per_iterationdetermines how many IP addresses the crawler will generate and process in each iteration.max_taskssets the maximum number of concurrent tasks the crawler will execute. Setting it to 0 will use the value from the[network]section.time_between_iterationdefines the cooldown time in seconds between each crawling iteration. Setting it to 0 will disable the cooldown.
Scanner Configuration
max_taskssets the maximum number of concurrent tasks the scanner will execute. Setting it to 0 will use the value from the[network]section.
Network Configuration
max_network_tasksdefines the maximum number of concurrent network tasks (e.g., pings, queries). Recommended values are between 1000 and 5000, and the value must be between 10 and 20000.timeoutsets the timeout in milliseconds for server connections. The value must be between 80 and 15000.do_uuid_fetchdetermines whether the crawler should fetch the UUID from the players via Mojangs servers. This can provide more accurate information about the server but may increase the time.default_portsis a list of default ports that the crawler will use when scanning for Minecraft servers. By default, it includes port 25565, which is the standard port for Minecraft servers. You can add more ports to this list if you want to scan for servers running on different ports.ping_timeout,query_timeout, andjoin_timeoutset the timeout in milliseconds for pinging, querying, and joining servers, respectively. The values must be between 80 and 15000.
Using a Custom Configuration File Path
By default, ServerRawler looks for the config.toml file in the root directory of your project.
If you want to use a custom path for your configuration file, you can specify it using the --config argument.