Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.5k
  • 205
  • 1.8k
  • 2.3k
Tweeted twitter.com/#!/StackUnix/status/97283916599267329
added 30 characters in body
Source Link
Caleb
  • 72k
  • 19
  • 203
  • 233

I have several applications that run on random ports. How would I take the pid or the file location and find which port it runsis running on?

ex. www-data/apache = 80

my-awesome-game = 2023Example of desired output:

etc.

www-data/apache = 80
my-awesome-game = 2023

I have several applications that run on random ports. How would I take the pid or the file location and find which port it runs on?

ex. www-data/apache = 80

my-awesome-game = 2023

etc.

I have several applications that run on random ports. How would I take the pid or the file location and find which port it is running on?

Example of desired output:

www-data/apache = 80
my-awesome-game = 2023
Source Link

How to detect out-bound port from PID.

I have several applications that run on random ports. How would I take the pid or the file location and find which port it runs on?

ex. www-data/apache = 80

my-awesome-game = 2023

etc.