TCP Settings#
💡 Tip: You can change these settings directly in the bgscan application instead of editing the TOML file manually.
Navigate to Settings → TCP Settings in the main menu to configure these options interactively using the TUI inspector.
Configuration file: settings/tcp_settings.toml
This file controls the TCP port scan configuration, including the target port, timeout, number of workers, retry attempts, and output prefix.
Port#
port = 80The target TCP port to probe on each IP address. The scanner attempts to establish a TCP connection to this port. Common examples: 80 (HTTP), 443 (HTTPS), 22 (SSH).
Recommended values: Common ports for the service you are scanning.
Timeout#
timeout = 3000Maximum duration (in milliseconds) to wait for a TCP connection to be established. Targets failing to respond within this window are considered unreachable.
Recommended values:
1000-3000for local networks5000-10000for unreliable or distant networks
Workers#
workers = 200The number of concurrent workers performing TCP connection attempts. Higher values increase scan speed at the cost of greater CPU and network utilization.
Recommended values:
50-100for limited resources200-500for typical use500-1000for high-performance scanning
Prefix Output#
prefix_output = "tcp_"The filename prefix applied to all output files generated by this module. Useful for distinguishing results when running multiple scans simultaneously.
Retries#
tries = 1The maximum number of retry attempts per target to mitigate connection failures. Higher values improve reliability but increase total scan duration.
Recommended values:
0for no retries (fastest)1-3for most networks4-10for unreliable networks