The above didn't help me, but this did:
Go to Windows VM, go to Start --> Run... --> type cmd.exe
The windows command line opens. Type ipconfig
and find out your
IP4-adress.
Edit your macs hosts file as described in this blogpost. Put in the
following line, replacing my windows VMs local IP (here 10.211.55.5) with the one you found out in the step before:
10.211.55.5 windows
Then, you can access the localhost of windows using win instead of localhost, for example http://windows:8080/someapp