How can I test in IE while developing under Mac OS X?

后端 未结 7 1422
闹比i
闹比i 2021-02-05 13:03

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

7条回答
  •  借酒劲吻你
    2021-02-05 13:40

    VMWare has three different networking modes:

    • NAT - The image is run in an isolated network that is routed through the host computer.
    • Bridged - The image is run on the same network as the host computer as an independent device.
    • Host Only - The image is run in an isolated network that is not routed.

    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.

提交回复
热议问题