Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a MacBook Pro, and I want to see if a particular port, 8181, is indeed open and running SSL, as I have set in my GlassFish server.

Is there a command I can issue to see what is serving on which ports?

share|improve this question
up vote 4 down vote accepted

From the Terminal:

$ openssl s_client -connect localhost:8181

This will connect to the localhost port 8181 using SSL.

share|improve this answer

netstat -ltnp

share|improve this answer

If it is publicly accessible, you can try online at

Just specify the port after the colon (126.128.791.151:8081)

share|improve this answer
netstat -tulpn

But I have no experience with it, just guessed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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