You can always configure the web server to listen on your IP address on the network, and then use this ip.
On the other hand, if you want to receive requests from several domains, such as a.localhost, b.localhost and c.localhost, try editing your hosts file to redirect domains to 127.0.0.1
source share