[PVE-User] External VNC Applet

Adnan RIHAN axel50397 at gmail.com
Sun Oct 7 19:00:45 CEST 2012

[Sent to pve-devel, no answer :/]  

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 !

Cordialement, Adnan RIHAN.
Président-Fondateur de l'association (de loi 1901) Virtual-Info (http://www.virtual-info.info/), hébergeur Web et Serveurs de Jeux.
Directeur-Technique pour le groupe Rininvest.
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://pve.proxmox.com/pipermail/pve-user/attachments/20121007/c42f866e/attachment-0013.html>

More information about the pve-user mailing list