March 29, 2024, 01:35:20 PM

News : LinuxSolved.com Linux Help Community Forum..


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