Edit the Hosts File on Local Machines:
- Windows:
- Open
Notepadas 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/hostsfile using a text editor likenanoorvim:
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.