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