Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

I have just setup "XAMPP" and i have created a php page inside "C:\xampp\htdocs\test" folder. When i try to run the page using

"http://localhost/test/Helloworld.php" this it will work, where as

"http://16.n.n.n/test/Helloworld.php" or "http://16.n.n.n:port/test/Helloworld.php"

doesn't work, it will give network error. I have used(8080, 80, 8000, 443) ports to check this.

Please help me out.

Thanks in advance.
Posted
Comments
Herman<T>.Instance 17-Aug-11 10:08am    
localhost, isn't that 127.0.0.1 ?

1 solution

The localhost maps to 127.0.0.1, it is also called a loop back address.
 
Share this answer
 
Comments
shwetha_m6 18-Aug-11 3:20am    
Thanks Shameel, but if i wanna access it from another network computer will it work..? In that case i have to provide actual IP address right..?

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