I was successfull in installing and configuring phpvirtualbox on IIS 8.5 on Windows Server 2012R2.
I also was successfull in getting it to connect to the localhost virtualbox server.
I'm getting errors when trying to connect to the same machine, but through it's IP address and any other machine I try to connect to through their IP address.
I turned off WIndows firewall to make sure it wasn't in the way. Same results.
I made sure my login creds and the user running the service were the same and the service is running.
I find it odd that localhost works but the not machines actual IP address on the network.
When starting vboxwebsrv, make sure to specify the ip on which to bind via -H 192.x.x.140. I'm not sure if this works in windows, but you may be able to specify all interfaces with -H 0.0.0.0. For example:
vboxwebsrv.exe -H 0.0.0.0
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was successfull in installing and configuring phpvirtualbox on IIS 8.5 on Windows Server 2012R2.
I also was successfull in getting it to connect to the localhost virtualbox server.
I'm getting errors when trying to connect to the same machine, but through it's IP address and any other machine I try to connect to through their IP address.
I turned off WIndows firewall to make sure it wasn't in the way. Same results.
I made sure my login creds and the user running the service were the same and the service is running.
I find it odd that localhost works but the not machines actual IP address on the network.
Any advice?
Error:
Exception Object
(
[message:protected] => Could not connect to host (http://192.XXX.XX.140:18083/)
[string:Exception:private] =>
[code:protected] => 64
[file:protected] => C:\inetpub\wwwroot\phpvb\endpoints\lib\vboxconnector.php
[line:protected] => 220
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => C:\inetpub\wwwroot\phpvb\endpoints\lib\vboxconnector.php
[line] => 4110
[function] => connect
[class] => vboxconnector
[type] => ->
[args] => Array
(
)
)
Location:http://192.XXX.XX.140:18083/
Last edit: Matt Swezey 2016-01-07
When starting vboxwebsrv, make sure to specify the ip on which to bind via -H 192.x.x.140. I'm not sure if this works in windows, but you may be able to specify all interfaces with -H 0.0.0.0. For example:
vboxwebsrv.exe -H 0.0.0.0
I believe that solved it!
Someone should update the how-to on using the Windows Task Scheduler to add the argument "-H 0.0.0.0".
Thanks Ian! This should also solve the external server connections I'm assuming as well.
Edit:
Works on external servers as well. I had to add a new firewall rule for the vboxwebsrv.exe.
Last edit: Matt Swezey 2016-01-08