<div>
<span style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); ">Hello Proxmox !</span><br style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); "><br style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); "><span style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); ">I have some VPS (PV2 2.1) and I'm making some APIs (Proxy API) to allow my customers building their own app/website to manage their VPS.</span><br style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); "><br style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); "><span style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); ">Today, I'm making a test script to show the VNCViewer (vncproxy) from my computer, and I'm trying to make it LIKE the proxmox VNCViewer. I'm ok with the headers, the tokens, the ticket and the info about the VNC (PORT/Cert/User/Pass). My problem is embedding proxmox (tigervnc) java applet in an external HTML Page.</span><br style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); "><br style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); "><span style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); ">Here is my code: </span>http://pastebin.com/aG3m0FYs</div><div><br></div><div><span style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); ">I've checked the 'param's, they're good (I put them correctly), and I also have a valid certificate on proxmox (pve-ssl.key & pve-ssl.pem).</span><br style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); "><span style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); ">So, when I try to load the page, the applet shows blackscreen for less than 1 sec then "Error: Server did not offer supported security type".</span><br style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); "><br style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); "><span style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); ">I know that there is a thing with authentication not supported by the new VNC servers, but I'm strictly using the same applet that on my proxmox server, but maybe I'm using it badly.</span></div>
<div><div>Then <span style="background-color: rgb(250, 250, 250); color: rgb(51, 51, 51); ">I've noticed that the applet is trying to connect to the current webpage hostname, not the hostname of the server where the .jar is.</span></div><div><span style="background-color: rgb(250, 250, 250); color: rgb(51, 51, 51); "><br></span></div><div><span style="color: rgb(51, 51, 51); background-color: rgb(250, 250, 250); ">So... I've read tigerVNC sources a little, and I found a "Server" parameter. So I tried to add it in the <param> list:</span></div><div><blockquote type="cite"><param name='Server' value='<?php echo "MY_HOST::".$res->data->port; ?>'></blockquote></div><div style="background-color: rgb(255, 255, 255); ">Still the same Error. Maybe the server only accepts localhost connection… Or does anyone have an idea :) ?</div><div style="background-color: rgb(255, 255, 255); "><br></div><div style="background-color: rgb(255, 255, 255); ">Thank you all !</div><div style="background-color: rgb(255, 255, 255); ">-- <br>Regards, Adnan RIHAN.<br></div><div style="background-color: rgb(255, 255, 255); "><a href="http://rihan.fr/" target="_blank" style="color: rgb(0, 106, 227); "><u>Consultant</u></a>-<u>Technicien Supérieur</u> en <i>Informatique de Gestion</i>.<br><u>Ambassadeur</u> <a href="http://lyt.me/7E" target="_blank" style="color: rgb(0, 106, 227); "><b>Qt</b></a> (Projet <a href="http://rihan.fr/fr/projets/tagpg" target="_blank" style="color: rgb(0, 106, 227); "><b></b></a><b><a href="http://rihan.fr/projects/system/tagpg">Tag-PG</a></b>).</div><div><br></div></div>