I have test website on my system (MacBook Pro with Mac OSX Lion). The website is served by nginx listening on port 8000. The listen configuration is listen 8000 default, so it should be open to accept request on any ip.

I can access the server from localhost but I cannot even access it from other systems in the same LAN. I configured OSX firewall to allow incoming for nginx. In the firewall log I see no 'deny' reports, and also I see no 'allowed' reports. So, I suspect the connection is getting blocked even before reaching the firewall.

To test if my LAN is working fine, I installed nginx on another system in tha LAN. I could access that from my Mac. So, LAN is configured properly. What else could be the problem?


Try to ping your machine from another one. Also, try your IP:port combination, e.g. from another one to hunt down the problem.

  • I do not get any response for the ping.
    – AppleGrew
    May 17 '12 at 12:19
  • Then it must be firewall. May 18 '12 at 9:40
  • But I face this issue even after I turn it off!
    – AppleGrew
    May 18 '12 at 16:19

Are both computers on the same network? If not, it can be a firewall inside betwen the two computers. Does the computer you are trying to ping from have a firewall enabled? Can you ping google or any other computer in the same network for example from that computer?

Are you sure is your MAC IP? (You can get this from Network Preferences or File Sharing in Sharing or using ifconfig on a terminal window)

After you get the right IP, try pingin from another computer in the same network.

Hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.