apache - Hosts - Access local website with external device -
after hours of searching , googling i've still not found decided ask here.
i've set virtual host called test.dev. means can have access 1 of local xampp projects typing address bar. set following:
<virtualhost *:80>     documentroot "c:/xampp/htdocs/test"     servername test.dev     <directory "c:/xampp/htdocs/test">         options indexes followsymlinks execcgi includes         order allow,deny           allow     </directory> </virtualhost>   it works fine on local computer if want access using external device connected same network, doesn't.
the question how should set hosts - file in order have access project external devices?
i've tried following:
 192.168.0.10    test.dev # ip address  127.0.0.1       test.dev # local address   but works on local computer. possible target same server name twice on different ip's?
e: figured out! of wondering same was, here's answer work on devices connected same network.
- install npm
 - with npm, install grunt
 install grunt-localtunnel-me
after installing, start command:
lt --port 80 --subdomain "name of wanted subdomain"
first of have verify following thing if working or not.
- make sure port 80 open all. check windows firewall. if want allow access port 80 follow instruction list here
 - allow xampp-apache accessible outside. can follow instruction here
 
if above steps fails share screen shot error messages.
Comments
Post a Comment