Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not connect to host (http://localhost:18083/) #334

Open
feherstefan opened this issue Nov 13, 2023 · 1 comment
Open

Could not connect to host (http://localhost:18083/) #334

feherstefan opened this issue Nov 13, 2023 · 1 comment

Comments

@feherstefan
Copy link

Ubuntu 22.04
VBox ver: 7.0.12r159484
phpvirtualbox ver: latest

Any help is highly appreciated, I'm still a junior. Below you find everything you would need
Error:

Exception Object
(
    [message:protected] => Could not connect to host (http://127.0.0.1:18083/)
    [string:Exception:private] => 
    [code:protected] => 64
    [file:protected] => /var/www/html/phpvirtualbox/endpoints/api.php
    [line:protected] => 134
    [trace:Exception:private] => Array
        (
        )

    [previous:Exception:private] => 
)

config.php:

/* Username / Password for system user that runs VirtualBox */
var $username = 'admin';
var $password = 'admin';

/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = 'http://127.0.0.1:18083/';

/* Default language. See languages folder for more language options.
 * Can also be changed in File -> Preferences -> Language in
 * phpVirtualBox.
 */
var $language = 'en';

/* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */
var $vrdeports = '9000-9100';
/* Set the default VRDE address, e.g. 192.168.1.1 */
#var $vrdeaddress = '192.168.1.1';
cat /etc/default/virtualbox
VBOXWEB_USER=vbox
root@daspletosaurus /var/www/html/phpvirtualbox # systemctl status vboxweb-service
● vboxweb-service.service
     Loaded: loaded (/usr/lib/virtualbox/vboxweb-service.sh; enabled; vendor preset: enabled)
     Active: active (exited) since Mon 2023-11-13 09:31:34 UTC; 1h 10min ago
        CPU: 3ms

Nov 13 09:31:34 daspletosaurus systemd[1]: Starting vboxweb-service.service...
Nov 13 09:31:34 daspletosaurus systemd[1]: Started vboxweb-service.service.

permissions:

drwxr-xr-x 10 www-data vboxusers  4096 Nov 13 10:36 phpvirtualbox/
@antwal
Copy link

antwal commented Dec 11, 2023

same problem;

Resolved:

VBOXWEB_HOST=0.0.0.0
VBOXWEB_PORT=18083
● vboxweb-service.service
     Loaded: loaded (/usr/lib/virtualbox/vboxweb-service.sh; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-12-11 20:32:30 CET; 1s ago
    Process: 8881 ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start (code=exited, status=0/SUCCESS)
      Tasks: 20 (limit: 18723)
     Memory: 17.9M
        CPU: 82ms
     CGroup: /system.slice/vboxweb-service.service
             ├─8486 /usr/lib/virtualbox/VBoxXPCOMIPCD
             ├─8492 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
             └─8893 /usr/lib/virtualbox/vboxwebsrv --background -H 0.0.0.0 -p 18083

dic 11 20:32:30 digisvapo systemd[1]: Starting vboxweb-service.service...
dic 11 20:32:30 digisvapo vboxweb-service.sh[8881]: vboxweb-service.sh: Starting VirtualBox web service.
dic 11 20:32:30 digisvapo vboxweb-service.sh[8884]: Starting VirtualBox web service.
dic 11 20:32:30 digisvapo vboxweb-service.sh[8901]: VirtualBox web service started.
dic 11 20:32:30 digisvapo systemd[1]: Started vboxweb-service.service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants