aboutsummaryrefslogtreecommitdiffhomepage
path: root/man
diff options
context:
space:
mode:
authorGravatar John Hood <cgull@glup.org>2016-05-27 17:43:11 -0400
committerGravatar John Hood <cgull@glup.org>2016-09-19 13:23:15 -0400
commit8945efeb82aad2919f47f9848374190dbc626d63 (patch)
tree0853a95df228b4a67effe232c388635bb8963dfe /man
parentc599987ff8620f5b2cbb13186aefb929f57ac523 (diff)
Allow server to bind an OS-selected UDP port with `-p 0`.
It looks like Mosh used to be able to do this but the capability was lost when port ranges were added in 141ec23.
Diffstat (limited to 'man')
-rw-r--r--man/mosh-server.13
-rw-r--r--man/mosh.15
2 files changed, 6 insertions, 2 deletions
diff --git a/man/mosh-server.1 b/man/mosh-server.1
index cac571a..92bbe1a 100644
--- a/man/mosh-server.1
+++ b/man/mosh-server.1
@@ -70,7 +70,8 @@ IP address of the local interface to bind (for multihomed hosts)
.TP
.B \-p \fIPORT\fP[:\fIPORT2\fP]
-UDP port number or port-range to bind
+UDP port number or port-range to bind. \fB\-p 0\fP will let the
+operating system pick an available UDP port.
.TP
.B \-c \fICOLORS\fP
diff --git a/man/mosh.1 b/man/mosh.1
index 12140bd..b2e1df0 100644
--- a/man/mosh.1
+++ b/man/mosh.1
@@ -183,9 +183,12 @@ Synonym for \-\-family=inet6
Use a particular server-side UDP port or port range,
for example, if this is the
only port that is forwarded through a firewall to the
-server. Otherwise, \fBmosh\fP will choose a port between 60000 and
+server. With \fB\-p 0\fP, the server will let the operating system pick an
+available UDP port. Otherwise, \fBmosh\fP will choose a port between 60000 and
61000.
+
+
.TP
.B \-\-bind\-server={ssh|any|\fIIP\fP}
Control the IP address that the \fBmosh-server\fP binds to.