Why does x11vnc exit as soon as the VNC viewer disconnects? And why doesn it allow more than one VNC viewer to connect at the same time?
These defaults are simple safety measures to avoid someone unknowingly leaving his X11 desktop exposed (to the internet, say) for long periods of time. Use the -forever option (aka -many) to have x11vnc wait for more connections after the first client disconnects. Use the -shared option to have x11vnc allow multiple clients to connect simultaneously. Recommended additional safety measures include using ssh (see above), stunnel, -ssl, or a VPN to authenticate and encrypt the viewer connections or to at least use the -rfbauth passwd-file option to use VNC password protection (or -passwdfile) It is up to YOU to apply these security measures, they will not be done for you automatically.