Changes To find_free_port
Not logged in

Changes to "find_free_port" between 2015-12-18 07:51:57 and 2018-07-17 14:29:19

1
2
3
4
5
6
7
8
9
10
11
1
2
3
4
5
6
7
8
9
10











-
This is helper script that finds port to bind for qemu spice interface.

Usage

    find_free_port nnnn

where nnnn is number of port to start search from.

This allows not to reserve port for each of your VMs. Typically you have much more stopped VMs than running, because VM consume many resources. And TCP ports are precious - there are just 65535 of them. 

**find_free_port** uses **netstat**(8) to find ports, used by some running processes.