Unix/Linux Forum: Find out the ports an application is using - Unix/Linux Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Find out the ports an application is using Rate Topic: -----

#1 User is offline   vibhor_agarwalin 

  • User Level: 7/10
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 574
  • Joined: 24-June 05

Posted 13 November 2008 - 11:39 AM

Any script or application is running.
Can i find out the ports its using.

It might be doing rsh, ssh, etc.

Thanks
Vibhor Kumar Agarwal
0

#2 User is offline   eggi 

  • User Level: 6/10
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 311
  • Joined: 25-November 07
  • Location:Grayslake, IL USA

Posted 14 November 2008 - 04:07 AM

Hey Vibhor,

Check out this post:

http://linuxshellaccount.blogspot.com/2007...ing-script.html

I knew someone else would eventually want to use it ;)

You should get output like:

Quote

Port 22 Information :
Service = sshd
PID = 469
User = root
Protocol = TCP
Status = LISTEN

Port 22 Information :
Service = sshd
PID = 469
User = jimmy88
Protocol = TCP
Status = LISTEN


and so forth for all active ports. Enjoy :)

, Mike
The greatest viral marketing idea of all time, get your copy of this Free Report now!
----
Linux Tips, Trick and Advice -- The Linux and Unix Menagerie
0

#3 User is offline   vibhor_agarwalin 

  • User Level: 7/10
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 574
  • Joined: 24-June 05

Posted 14 November 2008 - 06:32 AM

That's cool.

Thanks
Vibhor Kumar Agarwal
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users