Reputation: 379
Is there a way to connect from a Windows 7 virtual machine from Oracle VirtualBox to Mac Mountain Lion localhost php application?
The problem is some web apps need to be tested on that lovely IE, so hence the virtual machine; the development or host environment is Mac. The PHP web app was started via terminal command: php -S 127.0.0.1:port#.
Is there anyway from the virtual machine, can one use IE to browse the web app on the Mac host?
Tried WineBottler, IE8 constantly crashes there; Tried plain Wine, IE8 doesn't seem to respond at all, though it installs and opens, but freezes.
Last option is to connect through virtual machine or the long way via online server.
Thanks for the help!
Upvotes: 0
Views: 1805
Reputation: 379
Here's how I got this working for anyone interested:
Note: In my case, I needed to see my web app on the guest system, so I ran the app using the Ip address of my host and gave any port number (not in use). Then from the guest, I pointed to that Ip address and port number.
Example:
Assuming that the Ip address of the host is: 192.168.1.11
From host terminal: php -S 192.168.1.11:3000
From guest browser: 192.168.1.11:3000
Upvotes: 1
Reputation: 833
Have you had a look at Vagrant? You can forward ports to the host machine, and Virtual Box is actually a dependency for it anyway. I've never used it with a Windows box so that's something you'll have to have a look into.
By forwarding ports I mean you could open port 80
on the virtual machine and access that in the host via 8080
for example.
Upvotes: 1