D
D
Dubrovin2018-01-31 10:33:05
VMware
Dubrovin, 2018-01-31 10:33:05

How to access OpenServer from a VMWare virtual machine?

Hello,
I have OpenServer installed, I run the sites that I develop on it. Under Windows, I have a local IP to the domains of OpenServer sites in my hosts file, so I normally go to them from the browser.
I need to test sites under Mac, for this I installed the Sierra operating system on VMWare.
But when I log in from a poppy to Open Server, it is not available. What do I need to set up in Mac / VMWare so that I can access sites? Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Ulanov, 2018-01-31
@antonsr98

1) set up your DNS server normally, hosts is not a solution and you won’t test it normally
2) set up the network in the guest OS so that it receives ip from your router and not from the virtual router in VMware.
as a result, you will get a reliable system for tests

S
svm, 2021-06-08
@svm

1. On a poppy (i.e. a virtual machine):
sudo nano /etc/hosts
Add to the host file a bunch of ip of the computer on which the virtual machine itself is running, and a domain name.
For example
192.168.1.2 example.com
In the OpenServer settings, in the "Server" tab,
set the Ip server address to "All available IPs" (be careful with this setting, it also opens access from the outside). Switch off immediately after testing.
Everything, you can test the site. No need to configure any DNS, everything will work fine.
If not, then you should try turning off the firewall, it might be blocking it.
I know it's late, but better than never. I've been looking for an answer to this question myself, but there is no clear answer anywhere on the Internet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question