November 21, 2024, 09:44:55 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: List of Port numbers and Process Ids  (Read 7162 times)

Offline sudhansu

  • New Member
  • Posts: 1
List of Port numbers and Process Ids
« on: February 16, 2009, 11:12:17 AM »
Hello
i want to write a kernel module which can print the processes and the port numbers used by those processes.
can anybody help me...

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Re: List of Port numbers and Process Ids
« Reply #1 on: October 29, 2009, 03:55:35 PM »
Okay, use netstat.

# netstat -tapen