Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all,

i am executing php site in localhost:8080 in wampp server, it's getting error when i try with local machine ip address, "HTTP Error 404. The requested resource is not found" this is the error when i try in my local machine ip address, please anyone help me
Posted
Updated 11-Apr-20 2:30am

While you are using wampp server either you use localhost or you use 127.0.0.1 to execute anything from the www folder of wampp. If you are talking about the ip address which is for your lan/wlan then that's not gonna work. Because wampp is a server which is running inside your pc. So the host address of your pc is 127.0.0.1 now. If you gonna see your website from a shared pc, then you might need other ip address.
 
Share this answer
 
Comments
Kumar Kovuru 26-Aug-14 2:46am    
i can run using http://localhost:8080/projectname but i can't able to run http://192.168.1.14/projectname in the same machine..is there any way to run?
saadixl 26-Aug-14 2:55am    
192.168.1.14 is may the ip address which is alocated from your wifi router or modem. That kind of address is basically for creatng connection with modems or routers. You cannot see the project using that kinda ip address.
saadixl 26-Aug-14 2:58am    
If you have multiple pc connected in a same network then from the other pc you might see your site using 192.168.1.14/projectname
Kumar Kovuru 26-Aug-14 3:15am    
yes..but am not able to run am getting 404 error
saadixl 26-Aug-14 3:46am    
Are you trying to see the website from another pc?
php -S <ip> -t <root path="">/

Try if it works for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900