xref: /curl/docs/cmdline-opts/local-port.md (revision fe9f68fa)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: local-port
5Arg: <range>
6Help: Use a local port number within RANGE
7Added: 7.15.2
8Category: connection
9Multi: single
10See-also:
11  - globoff
12Example:
13  - --local-port 1000-3000 $URL
14---
15
16# `--local-port`
17
18Set a preferred single number or range (FROM-TO) of local port numbers to use
19for the connection(s). Note that port numbers by nature are a scarce resource
20so setting this range to something too narrow might cause unnecessary
21connection setup failures.
22