I have a simple code
<?php
echo "Test Message";
?>
The name of the file is test.php
This works fine when i access this code using localhost/test.php My computer has a local network IP 114.122.23.31. When I try access it using 114.122.23.31/test.php it shows: 503 Service Unavailable Failed to connect to server 114.122.23.31. I check the apache access log and find
127.0.0.1 – – [18/Apr/2012:12:00:08 +0530] “GET /test.php HTTP/1.1” 200 19 —- when I access it using localhost.
127.0.0.1 – – [18/Apr/2012:11:58:30 +0530] “GET /favicon.ico HTTP/1.1” 200 18902 —– when I access it using IP. Please help.
PS: It was working fine yesterday. Donno what happened today 🙁
Maybe your ip changed from yesterday because the dhcp lease expired?
Is your server configured to accept connections on non-localhost ips?