Skip to content

Commit b71081f

Browse files
Rodrigo Osoriorosorio
Rodrigo Osorio
authored andcommitted
Add a configuration variable to set the VRDE address
1 parent 788f43e commit b71081f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

config.php-example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ var $language = 'en';
2323

2424
/* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */
2525
var $vrdeports = '9000-9100';
26+
/* Set the default VRDE address, e.g. 192.168.1.1 */
27+
#var $vrdeaddress = '192.168.1.1';
2628

2729
/*
2830
*

endpoints/lib/vboxconnector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3828,6 +3828,7 @@ public function remote_machineCreate($args) {
38283828
$this->session->machine->VRDEServer->enabled = 1;
38293829
$this->session->machine->VRDEServer->authTimeout = 5000;
38303830
$this->session->machine->VRDEServer->setVRDEProperty('TCP/Ports',($this->settings->vrdeports ? $this->settings->vrdeports : '3390-5000'));
3831+
$this->session->machine->VRDEServer->setVRDEProperty('TCP/Address',($this->settings->vrdeaddress ? $this->settings->vrdeaddress : '127.0.0.1');
38313832
}
38323833
} catch (Exception $e) {
38333834
//Ignore

0 commit comments

Comments
 (0)