xf.li | bfc6e71 | 2025-02-07 01:54:34 -0800 | [diff] [blame^] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: local-port |
| 4 | Arg: <num/range> |
| 5 | Help: Force use of RANGE for local port numbers |
| 6 | Added: 7.15.2 |
| 7 | Category: connection |
| 8 | Example: --local-port 1000-3000 $URL |
| 9 | See-also: globoff |
| 10 | Multi: single |
| 11 | --- |
| 12 | Set a preferred single number or range (FROM-TO) of local port numbers to use |
| 13 | for the connection(s). Note that port numbers by nature are a scarce resource |
| 14 | that will be busy at times so setting this range to something too narrow might |
| 15 | cause unnecessary connection setup failures. |