Qemu networking
From Notes_Wiki
Redirect host port to guest port using qemu
We can use '-redir tcp:<host_port>::<guest_port>' option with qemu so that when connection is established to host port it gets forwarded to guest. During this guest and host are connected on a private network and guest can get DHCP IP. Guest and host can establish normal TCP/IP connections over this shared private network. It is very similar to host-only network without NAT that we can create when we use libvirt for virtualization.