title: How to get VNC port number using libvirt?
body: <p>I set <code>autoport=yes</code> in a domain's("virtual machine" in libvirt) config file so the VNC port is assigned automatically in the run time.</p>
  
  <p>I need to get this port so I can connect to the vm from outside, but I can't find the proper API to do so. Better in python because I'm using the libvirt-python bindings.</p>