CodeIgniter Forums

Full Version: Access local website from another PC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Beginers[/eluser]
Hi All,

Is it possible to access your created website local in other computer even the computer accessing the site don't have a wamp or xampp installed? if yes please teach me how to do it. Please anyone here know this?
I know if it is just a static website but the website i am creating is dynamic(involved database).

Regards,
Beginers

El Forum

[eluser]PhilTem[/eluser]
You're host servers firewall must allow access to port 80. Then you can just access that page using the LAN-IP with the respective IP and *bamm* there's your page.

El Forum

[eluser]CroNiX[/eluser]
Or you could name it in your hosts file and access it via a name instead of IP

Like if the local machine running the site was 192.168.1.100, in the machines that AREN'T running the site you'd enter into the hosts file:
192.168.1.100 bamboo

Then from that machine if you go to http://bamboo the site will come up. Basically just bypasses DNS.

El Forum

[eluser]Beginers[/eluser]
Hi PhilTem and CroNiX Thank you works perfectly. But IP address looks silly in the url. How do i name my host file to make it only the site name in the url?

El Forum

[eluser]CroNiX[/eluser]
My post shows how to turn it into a name. But doing that really depends on your OS on the machines.