There are a few things that you need to do to get the competition VM running on your laptop. First, boot your VM in NAT networking mode. Then proceed with the following instructions. NB: these settings should work with VMware, but the process should be similar if you're using something else.
The Problem
The problem is in two parts: (1) Wordpress assumes that it has been assigned a DNS name (which is not true on a local installation), and (2) your browser needs to know how to resolve that DNS name to your VM.
The Solution
We'll tackle the solution in 3 steps.
Step 1: Figure out what subnet your VMs are on and find a static IP assignment
- Find out VM subnet
 Note the IP address that this produces (ifconfig eth0 aaa.bbb.ccc.ddd).
- Edit /etc/network/interfaces.static
 and make sure it says the following (sudo nano /etc/network/interfaces.static aaa.bbb.cccare the values you got in previous step)
 address aaa.bbb.ccc.3 netmask 255.255.255.0 gateway aaa.bbb.ccc.1 dns-nameservers aaa.bbb.ccc.2 
- Point /etc/network/interfacesto your new configuration file
 sudo rm /etc/network/interfaces sudo ln -s /etc/network/interfaces.static /etc/network/interfaces 
- Reboot your VM for changes to take effect
 sudo /sbin/reboot 
- Test the new network configuration by running
 You should seeifconfig eth0 aaa.bbb.ccc.3as the IP address.
- Test external connectivity
 ping www.google.com 
Step 2: Now that we have a static IP address, let's make sure the guest VM can resolve it.
- Edit /etc/hostsfile to fix the line that mapsctf-portal.ctf.csail.mit.eduto an IP address
 make sure the last line readssudo nano /etc/hosts 
 aaa.bbb.ccc.3 ctf-portal.ctf.csail.mit.edu 
- Test with ping
 this should give you successful pings toping ctf-portal.ctf.csail.mit.edu aaa.bbb.ccc.3
Step 3: Finally, the guest should know how to resolve ctf-portal.ctf.csail.mit.edu, but your host that has your browser does not.
- The solution is similar to above, but OS-dependent. Find the /etc/hostsequivalent on your machine, and insert the same line you used above at the end.- On OS X and Linux, this is /etc/hosts
- On Windows, this is %systemroot%\system32\drivers\etc\hosts
 
- On OS X and Linux, this is 
- Test your modifications by pointing your browser to ctf-portal.ctf.csail.mit.edu. You should see the Wordpress front page if everything worked.
