My son came up with the solution.
In the 'hosts' file, I needed to have on one line the following:
127.0.0.1 localhost laptop-test-server
Previously, I had them on separate lines. To be honest, I don't know why it worked when I put them all on one line, but the bottom line is that that's how I got it to work.