How can I access my virtual host like http://copywriters.localhost
inside my Windows 10 VirtualBox?
I already set this:
In VM Host File:
10.0.2.2 localhost
10.0.2.2 copywriters.localhost
In my Host PC:
127.0.0.1 copywriters.localhost
I can ping http://copywriters.localhost
in VM. But can access on browser.
localhost
with a different address (10.0.2.2 localhost
)! Can you connect to your host system using the IP address? – Melebius Oct 09 '18 at 07:18http://10.0.2.2/phpmyadmin
but can't connect using thishttp://localhost/phpmyadmin
in my VM – TRD-Warren Oct 09 '18 at 07:4210.0.2.2 copywriters.localhost
should be sufficient AFAIK. – Melebius Oct 09 '18 at 07:43127.0.0.1 copywriters.localhost
is not correct. Assuming it's a bridged network, you need the same10.0.2.2 copywriters.localhost
rule. – RobotHumans Oct 09 '18 at 12:43