Viewing connections on a Linux port

Sometimes you might want to see the active connections on a specific port, rather than just the status of the port. This can be done using netstat:

netstat -anp | grep <your_port>

Something like this will be output (for example for port 19356):

tcp6       0      0 :::19356                :::*                    LISTEN      7354/java
tcp6       0      0      ESTABLISHED 7354/java
tcp6       0      0      ESTABLISHED 2748/java

Lines containing ESTABLISHED are active connections on the specified port. In our case, there are two of them.

If you still have any questions, feel free to ask me in the comments under this article, or write me on

If I saved your day, you can support me :)

4 thoughts on “Viewing connections on a Linux port

  1. It’s an remarkable piece of writing in support of all
    the internet visitors; they will get advantage from it I am

  2. This design is wicked! You obviously know how to keep a reader amused.

    Fantastic job. I really enjoyed what you had to say, and more than that, how you
    presented it. Too cool!

Leave a Reply

Your email address will not be published.