I am using MacOS Monterey 12.4 and have configured an Apache 2.4 server with virtual hosts that listen to all interfaces (0.0.0.0:80
) on my host. I have tested my private ip (192.168.1.2
), external-facing ip, as well as localhost on chrome and my webpage shows up as expected.
However, when I asked my colleague to enter my public IP address on a web browser to load up Apache's webpage, he sees the "[mypublicip] took too long to respond.
" message. Here's what I have done to diagnose this issue so far:
Enabled Port Forwarding on my ISP's router (80 -> 80) with TCP enabled
Temporarily disabled firewall
Temporarily disabled Antivirus software
Verify that Port Forwarding works by capturing the traffic sent by my colleague with Wireshark. I see his public IP attempting to establish a TCP connection ([SYN]
) with my private IP, 192.168.1.2
on port 80. My host never responds to the connection which leads to many [TCP Retransmission] [TCP Port numbers reused]
on his end.
Checked that port 80 is enabled with nmap localhost
I am not sure why the complete TCP connection isn't established after doing all the steps above and am currently baffled. In particular, why is my host not responding to the TCP [SYN] message? Any help is greatly appreciated.