I need NoVNC script API

i am php developer
i want to run VNC Console
this is my code
when i run this code its getting timeout


<?php
require("pve2_api.class.php");
$pve2 = new PVE2_API("103.108.117.173", "root", "pam", "xyzzz");
if ($pve2->login()) {
$node = 'host172';
$vmid = 1115;
$pve2->setCookie();
$new_container_settings = array();
$config = $pve2->post("/nodes/".$node."/qemu/".$vmid."/vncproxy",$new_container_settings);
$websock =$pve2->get('/nodes/host172/qemu/1115/vncwebsocket',
[
'vncticket' => $config['ticket'],
'port' => $config['port']
]);
$posttt=$config['port'];
$ticket=$config['ticket'];
$fvvv="api2/json/nodes/host172/kvm/1115/vncwebsocket?port=".$posttt."&vncticket=".$ticket;

echo $fvvvff= 'https://103.108.117.173:8006/?conso...on/nodes/host172/qemu/1115/vncwebsocket?port=' . $posttt . '&vncticket=' . $ticket;


echo $fvv='https://kanaka.github.io/noVNC/noVNC/vnc_auto.html?host=103.108.117.172&port=5900&password=xyzzz&encrypt=1&true_color=1&shared=1&view_only=0&path='.urlencode($fvvv).'';

?>
<iframe src="<?php echo $fvv;?>" frameborder="0" scrolling="no" width="1024px" height="100%"></iframe>
<iframe src="<?php echo $fvvvff;?>" frameborder="0" scrolling="no" width="1024px" height="100%"></iframe>