2
0

local-port.md 554 B


c: Copyright (C) Daniel Stenberg, daniel@haxx.se, et al. SPDX-License-Identifier: curl Long: local-port Arg: Help: Use a local port number within RANGE Added: 7.15.2 Category: connection Multi: single See-also:

  • globoff Example:
  • --local-port 1000-3000 $URL ---

--local-port

Set a preferred single number or range (FROM-TO) of local port numbers to use for the connection(s). Note that port numbers by nature are a scarce resource so setting this range to something too narrow might cause unnecessary connection setup failures.