Port Range Parser
Exactsingleportrangeparser0…65535inclusive,port0permittedliteral,no service/availabilityclaim. Explicitboundedofflineconvention,not authoritative external identity,eligibility,clinical or safe-use determination.
Description
A port-range string can represent one integer port or an inclusive interval.
A port-range string can represent one integer port or an inclusive interval.1
Parsing the numbers records the requested range without testing a service or network availability.
When to use Port Range Parser
Use this tool to apply the stated port range parser operation with an explicit input and unit basis.
How to use Port Range Parser and how it works
- Establish the text or game convention described above.
- Enter actualPortRangeText and run the tool.
- Read result.inclusiveStartPort, result.inclusiveEndPort, result.portCount using the output meanings below.
- If input is rejected, correct the stated type, range, ordering or alignment issue and rerun; review successful results under the declared convention.
| Input field | Meaning | Value type | Requirement |
|---|---|---|---|
| actualPortRangeText | Port range text, on the basis specified in the algorithm. | string | required; further conditions in the algorithm |
Accept exact 1–5 digit text or two such numbers separated by one hyphen. Require 0 ≤ start ≤ end ≤ 65535; return endpoints and end−start+1.
count = inclusive end − start + 1 Apply the declared units, ordering and branch conditions.
| Output field | Meaning | Value type |
|---|---|---|
| result | Object containing the declared output fields. | object |
| result.inclusiveStartPort | First port number, including literal zero when supplied. | number |
| result.inclusiveEndPort | Final inclusive port number. | number |
| result.portCount | Count of integers in the inclusive interval. | number |
{
"input": {
"actualPortRangeText": "80-82"
},
"output": {
"result": {
"inclusiveStartPort": 80,
"inclusiveEndPort": 82,
"portCount": 3
}
}
} Limitations and assumptions
The output applies the declared operation to the values you supply. Establish the measurement basis, units, coefficients and any caller-selected rules before interpreting it. The tool does not independently collect or verify observations or decide whether a model or reference applies.
Supply explicit required fields with the documented types and dense aligned arrays. Unknown fields, wrong types and nonfinite numbers are rejected. Branch-specific constraints are explained above. A successful false boolean, negative signed difference, empty slice or unresolved tie is distinct from an input error. Very large inputs or outputs may be rejected by shared resource limits.
Alternative or Complementary methods
Use URL Port Extractor to complement this result. Extract the normalized port property from an absolute URL before checking an explicit range.
Use URL Parser to complement this result. Inspect URL components when the port appears within a complete endpoint rather than a range string.
References
-
Port Range Parser — tool.io
Similar or alternative tools
- URL Port Extractor
Extract the normalized port property from an absolute URL before checking an explicit range.
- URL Parser
Inspect URL components when the port appears within a complete endpoint rather than a range string.