Follow the instructions below, if you would like to allow access to your localhost website amongst your peers in the same Local Area Network:
1. First, you may create a Virtual Host for your local website. To learn how to create virtual host in your localhost, you can go through my following tutorials. If you make use of virtual host then you can use local domain name such as http://wordpress.local or http://drupal.local etc. If you do not make use of localhost then
where,
1. First, you may create a Virtual Host for your local website. To learn how to create virtual host in your localhost, you can go through my following tutorials. If you make use of virtual host then you can use local domain name such as http://wordpress.local or http://drupal.local etc. If you do not make use of localhost then
- Windows: Creating Virtual Host on Xampp/Wamp
- Linux/Ubuntu: Creating Virtual Host on Apache Web Server
- 192.168.1.1 is your local ip. Visit this link to find your local ip: https://goo.gl/NT31td
- 80 is the port number, which is the port number for http, the port that is used to access your website locally and remotely
127.0.0.1 example.local
where,
- 127.0.0.1 needs to be replaced with your local ip
- example.local needs to be replaced with the virtual host you created for your website
- Windows: Modify your hosts file
- Linux/Ubuntu: How do I edit the /etc/hosts file?
No comments:
Post a Comment
Thank you for your Feedback!
www.evagabond.me