[pve-devel] External VNC Applet

Adnan RIHAN axel50397 at gmail.com
Fri Oct 5 22:51:55 CEST 2012


Hello Proxmox !

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.

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.

Here is my code: http://pastebin.com/aG3m0FYs

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).
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".

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.  
Then 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.

So... I've read tigerVNC sources a little, and I found a "Server" parameter. So I tried to add it in the <param> list:
> <param name='Server' value='<?php echo "MY_HOST::".$res->data->port; ?>'>

Still the same Error. Maybe the server only accepts localhost connection… Or does anyone have an idea :) ?

Thank you all !
--  
Regards, Adnan RIHAN.
Consultant (http://rihan.fr/)-Technicien Supérieur en Informatique de Gestion.
Ambassadeur Qt (http://lyt.me/7E) (Projet Tag-PG (http://rihan.fr/projects/system/tagpg)).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20121005/140c9d52/attachment.htm>


More information about the pve-devel mailing list