Jul 6th, 2020
Here are the steps I take to prepare my Mac computer to test various browsers in Windows using a VM.
- Get VirtualBox: https://www.virtualbox.org/wiki/Downloads
- Download the VM from Microsoft: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
- Open VirtualBox and add the VM
- Update the VM Settings:
- General
- Shared Clipboard: Host to Guest (or bidirectional)
- System
- Motherboard -> Base Memory: 4GB
- Processor: 4 cores
- Display -> Screen -> Video Memory: 256MB
- Network -> Adapter 1
- Attached to: NAT
- General
- Start the VM
- Login with password: Passw0rd!
- Open notepad as an administrator
- Edit C:\Windows\System32\drivers\etc\hosts and add
10.0.2.2 localhost
- Open Powershell as an administrator
- Forward ports with netsh, for example:
netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=3000 connectaddress=10.0.2.2 connectport=3000
- This example enables visiting http://localhost:3000, which is handy for testing with Create React App.