I have a wireless internet connection setup on my Mac. (v10.5.6) Am connected to the internet and everything is running smoothly. I recently discovered a quirky behaviour while setting up apache web server. When i typed in my dynamic ip (http://117.254.149.11/) in the webbrowser to visit my site pages it just timed out. In terminal i tried pinging localhost and it worked.
$ ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.063 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.056 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.044 ms
But if i pinged my ip it would just time out.
$ ping 117.254.149.11
PING 117.254.149.11 (117.254.149.11): 56 data bytes
^C
--- 117.254.149.11 ping statistics ---
10 packets transmitted, 0 packets received, 100% packet loss
Pinging any other site works though.
I am completely stumped.
Any help would be greatly appreciated.
Answer
Make sure that Apache is listening on your WLAN card's IP address:
LISTEN ...
(where ... is the address from Network Preferences -> AirPort -> Advanced... -> TCP/IP -> IPv4 Address). You can configure this in Apache's config files - their location in the file system depends on your Apache installation (search for httpd.conf, the config files should be in that directory and its subdirectories).Is
http://117.254.149.11/
the dynamic ip of your router or the dynamic ip of your Mac? If it's the one from your router, you'll have to configure NAT to forward to your Mac.
Comments
Post a Comment