Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6876831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:31:37+00:00 2026-05-27T04:31:37+00:00

In a Linux specific way, how can I get the list of all open

  • 0

In a Linux specific way, how can I get the list of all open UDP ports and all TCP ports currently accepting connections in some interface?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:31:37+00:00Added an answer on May 27, 2026 at 4:31 am

    The most common way is to use netstat console utility with the following flags:

    netstat -plan
    

    where:

    -p : Show the PID and name of the program to which each socket belongs;
    -l : Show only listening sockets;
    -a : Show both listening and non-listening sockets;
    -n : Show numerical addresses instead of trying to determine symbolic host, port or user names.
    

    For additional output options and flags please check man pages man netstat. Based on your particular needs, only TCP or UDP (for example) protocol connections can be examined:

    netstat -4 --tcp --udp --all
    

    Alternatively, lsof -i might be helpful.

    Most likely you are interested in the following information (special /proc filesystem):

    /proc – Mount point for the proc filesystem, which gives access to kernel status information via the following files:

    • /proc/net/dev – device information
    • /proc/net/raw – raw socket information
    • /proc/net/tcp – TCP socket information
    • /proc/net/udp – UDP socket information
    • /proc/net/igmp – IGMP multicast information
    • /proc/net/unix – Unix domain socket information
    • /proc/net/ipx – IPX socket information
    • /proc/net/ax25 – AX25 socket information
    • /proc/net/appletalk – DDP (appletalk) socket information
    • /proc/net/nr – NET/ROM socket information
    • /proc/net/route – IP routing information
    • /proc/net/ax25_route – AX25 routing information
    • /proc/net/ipx_route – IPX routing information
    • /proc/net/nr_nodes – NET/ROM nodelist
    • /proc/net/nr_neigh – NET/ROM neighbours
    • /proc/net/ip_masquerade – masqueraded connections
    • /proc/net/snmp – statistics
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to figure out a way where I can pass some data/fields from a
I'd like to construct a Linux command to list all files (with their full
Is there any way to get a xev -like mode where I can hit
Concerning Windows batch files: Is there a way to list all the files (or
Using Python, how does one parse/access files with Linux-specific features, like ~/.mozilla/firefox/*.default ? I've
I would like to find the files containing specific string under linux. I tried
In Linux, can one set a custom icon for a folder/directory as it appears
Is there a possibility that I can hardcode interface name(say eth1) to a specific
Is there a built-in unix/linux command which returns the target of a specific symbolic
How does one get their current process ID (pid) from the Linux command line

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.