As long as the Web Server, LS Server and the browser run on the same machine,
your current installation can be replicated perfectly identical on any other machine.
This means deploying the same code, performing the same changes to the hosts file and requesting the same URL from your browser.

Can you do that on the target environment?
If that works, then we can start customizing the configuration specifically for the target environment.