Thread: getProcessName By Port number

  1. #1
    Registered User
    Join Date
    Mar 2010

    Question getProcessName By Port number


    I want to show process name or process id by port number.Port number is known but what process (id or name) is keeping it busy.

  2. #2
    Registered User
    Join Date
    Mar 2010
    There is no standard (as in ISO 14882) way to do it in C++. It is a operating system related question. So: what operating system do you use? In Linux&BSD a system("netstat") will be the quick&dirty solution. For MacOS, BeOS, NeXT, Dos, Windows et cetera I have no clue.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  2. Number Guessing
    By blacknapalm in forum C Programming
    Replies: 2
    Last Post: 10-01-2008, 01:48 AM
  3. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  4. Problems with connect and select...
    By scrappy in forum Networking/Device Communication
    Replies: 4
    Last Post: 12-24-2003, 08:19 PM
  5. Random Number problem in number guessing game...
    By -leech- in forum Windows Programming
    Replies: 8
    Last Post: 01-15-2002, 05:00 PM