Docs GitHub
-- --
Theme:
Language:
EN فا

TCP Settings#

💡 Tip: You can change these settings directly in the bgscan application instead of editing the TOML file manually.

Navigate to SettingsTCP Settings in the main menu to configure these options interactively using the TUI inspector.

Configuration file: settings/tcp_settings.toml

The TCP probe opens a connection to one port on each target and records the handshake latency. It does not speak any application protocol.

Quick Reference#

SettingDefaultRangeDescription
port4431-65535Target TCP port
timeout2000100-30000Connection timeout in milliseconds
workersplatform-dependent1-5000Concurrent connection attempts
tries11-10Connection attempts per target
output_prefix"tcp_"Result filename prefix

Port#

port = 80

The TCP port probed on every target. Common choices are 80, 443, and 22.

Timeout#

timeout = 3000

How long to wait for the handshake, in milliseconds. Targets that do not complete within the window count as unreachable.

  • 1000-3000 for local networks
  • 5000-10000 for distant or unreliable networks

Workers#

workers = 200

Concurrent connection attempts. Each worker holds one open socket, so high values need a matching file-descriptor limit.

  • 50-100 on limited resources
  • 200-500 for typical use
  • 500-1000 for high-throughput scanning

Retries#

tries = 1

Attempts per target before giving up. Only timeouts are retried. A refused connection or other immediate error fails the target right away, which keeps throughput up on dead ranges. The minimum is 1, so there is no way to disable the first attempt.

Output Prefix#

output_prefix = "tcp_"

Filename prefix for result files written by this probe. Files land in result/tcp/.