Can I access webpage(which is written in php scripting language) located in my computer from another computer?
josh25
2009-05-19 00:41:19 UTC
i am new to php. I have installed apache server on my computer and have written php code to build simple webpage in my computer.how can i access the webpage located in my computer from another computer?Is that possible?
Three answers:
seegeedubya
2009-05-20 20:07:19 UTC
You don't need a static IP unless you want to act as a permanent server, and you've already installed the software you need.
You already know that if you want to access a web server on your own machine, simply point your web browser to http://localhost or http://127.0.0.1. The process is the same for anyone else on your local network; the only difference is the address. You need to enter your machine's IP address instead of localhost.
To access your apache server, you need only enter http://, where the IP address is the current address of your machine. Find your IP by choosing Start Programs/Run/ipconfig -- you'll see your current IP address. If you're on your home network, it's probably 192.168.x.x, or 10.x.x.x, where the x's will vary. It doesn't matter what it is, just note the 4 numbers.
Other machines on your local network will be able to access your machine by entering the URL http://[your IP]. Please note that this approach should only be used on your local network; I would not advise doing this on the internet. For that, I'd recommend you get space through a hosting vendor, and get a proper domain name. For quick and dirty access, however, the local network approach will work fine.
musdapro
2009-05-19 01:14:10 UTC
I think you can. You need a static IP for your computer. If you are accessing your webpage locally using http://localhost/somefolder/somepage.php then on another computer use the IP address instead of localhost.
janessa
2009-05-19 00:55:59 UTC
no.. its not possible unless you make it online..
try to upload your program in a hosting site..
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.