summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorVincent Bernat2017-02-25 22:31:58 +0100
committerSamuel Thibault2017-04-29 18:29:58 +0200
commit0bed71edbc323de12ed1e5390a85a013f6a143f4 (patch)
tree9756486f7759db04617d6a94ea4909a3a44c89f8 /include/exec
parentMerge remote-tracking branch 'remotes/rth/tags/pull-tcg-20170426' into staging (diff)
downloadqemu-0bed71edbc323de12ed1e5390a85a013f6a143f4.tar.gz
qemu-0bed71edbc323de12ed1e5390a85a013f6a143f4.tar.xz
qemu-0bed71edbc323de12ed1e5390a85a013f6a143f4.zip
slirp: allow host port 0 for hostfwd
The OS will allocate automatically a free port. This is useful if you want to be sure to not get any port conflict. You still have to figure out which port you got, for example with "lsof" (this could be exposed in the monitor if needed). Example of use: $ qemu-system-x86_64 -net user,hostfwd=127.0.0.1:0-:22 ... Then, get your port with: $ lsof -np 1474 | grep LISTEN qemu-syst 31777 bernat 12u IPv4 [...] TCP 127.0.0.1:35145 (LISTEN) Signed-off-by: Vincent Bernat <vincent@bernat.im> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions