I've got my web application on Mac OS X and it's ready for IE compatibility testing. I've tried running the server, booting up VMware and pulling up localhost:3000
with no luck.
How can I test my web application on IE6-8 and Chrome without deploying it somewhere?
All you need is the correct IP address that VMWare uses to access your mac, then you can access it like this:
http://192.168.1.2:3000
And test it just fine. I would tell you how to find it but I have more experience with Parallels.
EDIT Ok, it seems you need to open your network connection information in the guest operating system (Windows) and grab the "Gateway" address which should be the IP address that VMWare is using to connect to your Mac. Simply add :3000
to the end of it and you should be able to access your Rails site from Internet Explorer (be sure to put the http://
on as well).
VMWare has three different networking modes:
In NAT mode you need to check the gateway IP and use that as you would localhost. Since this number appears to be arbitrary, yet unchanging for any given image, it may be more convenient to make an entry in your HOSTS file to save it for posterity.
In bridged mode, you simply use the IP address of the host machine, not the special VMWare one.
Using NAT is the most straightforward, as you simply have to check the output of ROUTE PRINT and look for the default gateway:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.16.153.2 172.16.153.130 10
Usually this is the first line, but it is the one identified by destination 0.0.0.0.
Add this entry to your hosts file at c:\windows\system32\drivers\etc on XP:
172.16.153.2 localhost.local
Then you can use the address http://localhost.local:3000/ instead of the arbitrary IP address. If you're using Passenger to run your applications, you can add additional lines for each entry defined by Passenger.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With