xref: /aosp_15_r20/external/curl/docs/cmdline-opts/local-port.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: local-port
5*6236dae4SAndroid Build Coastguard WorkerArg: <range>
6*6236dae4SAndroid Build Coastguard WorkerHelp: Use a local port number within RANGE
7*6236dae4SAndroid Build Coastguard WorkerAdded: 7.15.2
8*6236dae4SAndroid Build Coastguard WorkerCategory: connection
9*6236dae4SAndroid Build Coastguard WorkerMulti: single
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - globoff
12*6236dae4SAndroid Build Coastguard WorkerExample:
13*6236dae4SAndroid Build Coastguard Worker  - --local-port 1000-3000 $URL
14*6236dae4SAndroid Build Coastguard Worker---
15*6236dae4SAndroid Build Coastguard Worker
16*6236dae4SAndroid Build Coastguard Worker# `--local-port`
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard WorkerSet a preferred single number or range (FROM-TO) of local port numbers to use
19*6236dae4SAndroid Build Coastguard Workerfor the connection(s). Note that port numbers by nature are a scarce resource
20*6236dae4SAndroid Build Coastguard Workerso setting this range to something too narrow might cause unnecessary
21*6236dae4SAndroid Build Coastguard Workerconnection setup failures.
22