How can I open access to port 8080 from the outside world (private lan) on my Mac OS X Lion? I'd like to access a webpage that's running on my lamp stack on my mac (zend server ce) from within the lan. I can access port 80 just fine. Port 8080 is blocked on the other hand. I've also disabled the firewall.

  • Where are you wanting to accomplish this? At work or home?
    – erimar77
    Commented Nov 15, 2011 at 23:33
  • In any arbitrary lan.
    – VinnyD
    Commented Nov 16, 2011 at 1:27
  • 1
    Is Apache configured to listen on Port 8080 yet? Commented Nov 16, 2011 at 3:14
  • Basically when you say 'open a port' its a several step process. 1) Configure & Start your application (ie Apache). 2) Verify the application is listening on the port: from commandline netstat -a | grep 8080 3) Turn off firewall(s). Bottom line is an application needs to be listening on that port for the whole process to work.
    – Rob
    Commented Nov 11, 2014 at 17:58

4 Answers 4


When you say that you disabled the firewall, do you mean the one in: System Preferences > Security > Firewall, or the ipfwIP Firewall that you can access from the command line? Or perhaps both?

To check to see if you have ipfw rules, you can always go to the terminal and type in:

sudo ipfw list

You might also use nmap to check if the port is open from different places on your internal network. Of course, OS X doesn't comes with nmap by default, so you would have to try that from a Linux machine or use something like Fink or Macports to install it.

nmap -p 8080 host.domain.com

I hope this helps.

  • 28
    This doesn't answer the question - how to open a port. It only suggests ways to check if the port is open.
    – Madbreaks
    Commented Apr 9, 2013 at 17:35

You can disable firewall or you can allow a certain application to accept incoming connections. Plus to allow access to the outside world (e.g www), you'll need to forward traffic to your internal gateway:port via your router settings.

Here's how to do this:

  1. Mac->Sys Preferences->Sharing->Enable “Web Sharing” checkbox
  2. Mac->Sys Preferences->Security-> Turn off firewall, or allow your application to accept incoming connection
  3. Open a port on the router (via to forward traffic from your_web_ip:port to a local_gateway:port

    1. Router Settings -> Port Forwarding -> create rule: forward to local gateway (e.g., custom port, protocol tcp, source=any, destination=3280, all connection types, forward to port = 8080.

Done. Now from the remote computer, open your browser to your web ip address (find via http://www.whatismyip.com/) + destination port# above, e.g., this will connect to your local

  • I'm missing the third point: How to access to router settings? I don't find any option on preferences. Commented Mar 17, 2013 at 16:45
  • You can get access to your router usually by with admin name and password.
    – Chase T.
    Commented Mar 19, 2013 at 1:47

In MAC OSX - Changing the httpListenAddress for Jenkins on OSX

I installed Jenkins via homebrew and wanted the web interface to be accessible over the network. By default, Jenkins is launched with the --httpListenAddress= option and is only accessible on the local machine.

I found the plist file that was used to launch Jenkins in ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist and changed the argument, but each time I ran brew services restart jenkins my changes would be lost. It turns out that this file only exists at run time. The config file that is actually used is located at /usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist. If you change this file then restart Jenkins then your changes should take effect.

sudo vim /usr/local/opt/jenkins/homebrew.mxcl.jenkins.plist
brew services restart jenkins

Ref: https://michaelheap.com/changing-the-httplistenaddress-for-jenkins-on-osx/

  • if you want to listen on all available interfaces Commented Apr 21, 2020 at 17:47

If the firewall is off and you're sure Apache is listening on :8080, then you must have a firewall upstream somewhere that's blocking 8080. Unblock it there.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .