CodeIgniter Forums
Access local website from another PC - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Access local website from another PC (/thread-56261.html)



Access local website from another PC - El Forum - 12-06-2012

[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


Access local website from another PC - El Forum - 12-06-2012

[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.


Access local website from another PC - El Forum - 12-06-2012

[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.



Access local website from another PC - El Forum - 12-06-2012

[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?


Access local website from another PC - El Forum - 12-06-2012

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