Edit the Hosts File on Local Machines:
- Windows:
- Open
Notepad
as Administrator. - Open the file located at
C:\Windows\System32\drivers\etc\hosts
. - Add an entry like this:
- Open
192.168.1.100 example.com
Replace 192.168.1.100
with the local IP address of your server and example.com
with your domain name.
- Linux/Mac:
- Open a terminal.
- Edit the
/etc/hosts
file using a text editor likenano
orvim
:
bash
sudo nano /etc/hosts
- Add an entry like this:
192.168.1.100 example.com
Replace 192.168.1.100
with the local IP address of your server and example.com
with your domain name.