I am on my second attempt to set up a LAMP webserver (https://projects.raspberrypi.org/en/projects/lamp-web-server-with-wordpress/3) on my LAN. The first attempt was successful until I suddenly noticed that the server refused connection to my laptop (Windows 10) - it had previously connected successfully. Eventually in desperation wiped Pi and started again, testing carefully step by step. So, having connected Pi to WiFi (ping from laptop OK), the first step is install Apache2. All well, and Apache2 Debian Default page appears on Pi's browser in response to http://192.168.1.22 (Pi's IP address). As expected.
At this stage my laptop (call it laptop1) is refused connection at that IP address. But checking on a second PC (laptop2 running XP), we connect to the Apache2 Debian Default page as expected. Laptop1, laptop2 and Pi are of course all on the same WiFi.
I have made NO other changes to Pi or to either laptop.
I conclude: The Apache installation is fine. The difficulty lies with laptop1.
Can somebody please suggest how I can track this down on laptop1? Where should I start looking? Is it a setting I have inadvertently changed? Could a dll have got corrupted?
Added later: Apache's access log shows two error codes associated with laptop1. these are 404 (not found) and 408 (Time out- sorry, previously misread 407 Proxy identification required). So why laptop1 not found?
Thanks, John
tcpdump -n
. You may need to add an interface name liketcpdump -n -i eth0
ortcpdump -n -i wlan0
. If systemd uses the so called predictable names, useip l
to show the interface names.tcpdump
will show the packets sent and received. The two main effects when not connecting are either a wait for some seconds followed by a timeout or an immediate answer the the connection is refused.