Menu

Help with Windows Setup

Help
2016-01-07
2016-01-08
  • Matt Swezey

    Matt Swezey - 2016-01-07

    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
    (
    )

                )
    
            [1] => Array
                (
                    [file] => C:\inetpub\wwwroot\phpvb\endpoints\lib\vboxconnector.php
                    [line] => 951
                    [function] => remote_vboxGetMedia
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                        )
    
                )
    
            [2] => Array
                (
                    [file] => C:\inetpub\wwwroot\phpvb\endpoints\api.php
                    [line] => 316
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => vboxGetMedia
                            [1] => Array
                                (
                                    [0] => 
                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                            [responseData] => Array
                                                                (
                                                                )
    
                                                        )
    
                                                    [errors] => Array
                                                        (
                                                        )
    
                                                    [persist] => Array
                                                        (
                                                        )
    
                                                    [messages] => Array
                                                        (
                                                        )
    
                                                )
    
                                        )
    
                                )
    
                        )
    
                )
    
            [3] => Array
                (
                    [file] => C:\inetpub\wwwroot\phpvb\endpoints\api.php
                    [line] => 316
                    [function] => vboxGetMedia
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => Array
                                                (
                                                    [responseData] => Array
                                                        (
                                                        )
    
                                                )
    
                                            [errors] => Array
                                                (
                                                )
    
                                            [persist] => Array
                                                (
                                                )
    
                                            [messages] => Array
                                                (
                                                )
    
                                        )
    
                                )
    
                        )
    
                )
    
        )
    
    [previous:Exception:private] =>
    

    )

    Location:http://192.XXX.XX.140:18083/

     

    Last edit: Matt Swezey 2016-01-07
  • Ian Moore

    Ian Moore - 2016-01-08

    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

     
  • Matt Swezey

    Matt Swezey - 2016-01-08

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.