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.

  1. install npm
  2. with npm, install grunt
  3. install grunt-localtunnel-me

  4. after installing, start command: lt --port 80 --subdomain "name of wanted subdomain"

first of have verify following thing if working or not.

  1. make sure port 80 open all. check windows firewall. if want allow access port 80 follow instruction list here
  2. allow xampp-apache accessible outside. can follow instruction here

if above steps fails share screen shot error messages.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -