2024-05-15 15:20:32 -04:00
|
|
|
---
|
2023-12-11 20:30:44 -05:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
SPDX-License-Identifier: curl
|
|
|
|
Long: local-port
|
2024-05-15 15:20:32 -04:00
|
|
|
Arg: <range>
|
|
|
|
Help: Use a local port number within RANGE
|
2023-12-11 20:30:44 -05:00
|
|
|
Added: 7.15.2
|
|
|
|
Category: connection
|
|
|
|
Multi: single
|
2024-05-15 15:20:32 -04:00
|
|
|
See-also:
|
|
|
|
- globoff
|
|
|
|
Example:
|
|
|
|
- --local-port 1000-3000 $URL
|
2023-12-11 20:30:44 -05:00
|
|
|
---
|
2024-05-15 15:20:32 -04:00
|
|
|
|
|
|
|
# `--local-port`
|
|
|
|
|
2023-12-11 20:30:44 -05:00
|
|
|
Set a preferred single number or range (FROM-TO) of local port numbers to use
|
2024-05-15 15:20:32 -04:00
|
|
|
for the connection(s). Note that port numbers by nature are a scarce resource
|
2023-12-11 20:30:44 -05:00
|
|
|
so setting this range to something too narrow might cause unnecessary
|
|
|
|
connection setup failures.
|