Hi,
Currently I'm working on a lan and I have installed php with wamp server. Presently http://localhost/projectfoldername will return me the index page of the current project.
Now i want to open my application from my colleague's system who also is in the same LAN as I am.
Please let me know how i can do this .. I remember in java i used to do by changing a conf file. But i didnt find any here in php.
please help me
How to change LOCALHOST to my IP ADDRESS
Moderator: General Moderators
Re: How to change LOCALHOST to my IP ADDRESS
... localhost = 127.0.0.1 ?!?
Just type in your private IP address (e.g. 192.168.1.123) in your colleague's browser and be sure your firewall permits incomming connections to port 80.
Just type in your private IP address (e.g. 192.168.1.123) in your colleague's browser and be sure your firewall permits incomming connections to port 80.
There are 10 types of people in this world, those who understand binary and those who don't
Re: How to change LOCALHOST to my IP ADDRESS
If you're running windows, open cmd and type ipconfig. Then type the ip address you see into your colleague's web browser.
I think the command for linux is ifconfig (can't check right now, I'm on my laptop with windows only).
I think the command for linux is ifconfig (can't check right now, I'm on my laptop with windows only).
Last edited by onion2k on Mon Aug 03, 2009 8:09 am, edited 1 time in total.
Reason: Removed line of text that no longer makes sense because it was refering to a deleted post.
Reason: Removed line of text that no longer makes sense because it was refering to a deleted post.
Re: How to change LOCALHOST to my IP ADDRESS
You'll probably need to open the http port in your firewall too.
Re: How to change LOCALHOST to my IP ADDRESS
If the problem still persist two things might be causing it;
You might need to put your apache webserver online if you re running a WAMP server, though i hv not used a different one before.
If you re already online then you might have to go into the httpd.conf file of your server or your root folder probably client computers are been denied access.
look for these lines
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
change to this lines
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
#Deny from all
</Directory>
then save it after which you restart the apache service
Pls make sure you duplicate the file before making any changes in case you did something wrong and your server begins to misbehave you can go back to the previous state.
You might need to put your apache webserver online if you re running a WAMP server, though i hv not used a different one before.
If you re already online then you might have to go into the httpd.conf file of your server or your root folder probably client computers are been denied access.
look for these lines
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
change to this lines
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
#Deny from all
</Directory>
then save it after which you restart the apache service
Pls make sure you duplicate the file before making any changes in case you did something wrong and your server begins to misbehave you can go back to the previous state.