December 13, 2017, 09:19:35 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: List of Port numbers and Process Ids  (Read 2072 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