Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

4 Answers 4

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
netstat -tulpn

But I have no experience with it, just guessed.

share|improve this answer

If it is publicly accessible, you can try online at http://www.sslshopper.com/ssl-checker.html

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

share|improve this answer

Your Answer

 
discard

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.