I am trying to get xdebug working on my snow leopard box.

It uses port 9000.

When I ask slickedit to monitor this port is gives an error that the address is not available.

I've gone to canyouseeme.org to see if the port is open.

It says the port is NOT open.

I've verified that I have that port forwarding to my box from the router and i do NOT have the mac firewall running.

I'm stumped. Any ideas?


You can also see if it anything is listening on port 9000 by typing netstat -an |grep 9000 |grep LISTEN in Terminal. Here is an example on my system, looking for 22 instead of 9000:

jed@jed-mbp:~$ netstat -an |grep 22 |grep LISTEN
tcp4       0      0  *.22                   *.*                    LISTEN
tcp6       0      0  *.22                   *.*                    LISTEN

This means that my system is listening on 22 for connections both on IPv4 and IPv6.

Good luck,


| improve this answer | |

If you need to quickly scan a Mac via command line, use the stroke command, which is located on all Macs in /Applications/Utilities/Network\ Utility.app/Contents/Resources.

The syntax is: stoke host startPort endPort

For example,

[root@my-cumulus 17:36:46 ~]# stroke 0 9287
Port Scanning host:

Open TCP Port:  22      ssh
Open TCP Port:  80      http
Open TCP Port:  311     asip-webadmin
Open TCP Port:  625     dec_dlm
Open TCP Port:  3283    net-assistant
Open TCP Port:  5900    vnc-server
Open TCP Port:  8009
Open TCP Port:  8954    cumulus-admin
Open TCP Port:  9287    cumulus
| improve this answer | |

can you open the Terminal and telnet <YOUR MAC'S ADDRESS> 9000 ?

| improve this answer | |
  • Nope.... [~/Public/Source/dst2/dst] telnet 9000 Trying telnet: connect to address Connection refused telnet: Unable to connect to remote host – GeoffreyF67 Apr 15 '10 at 23:45
  • Actually, yes it does work ok. I didn't have the ide running with xdebug when I just tried it. ran the ide and tried again and it worked... – GeoffreyF67 Apr 15 '10 at 23:47

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.