• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

under Solaris, find which program is serving a tcp port?

Hi, without root permission, how do I find out the program listening
to a paticular tcp port under Solaris?

Thx.
Sean
0
xzhang4
Asked:
xzhang4
2 Solutions
 
yuzhCommented:
use "netstat" command:

   eg:
    netstat -a | grep LISTEN | grep port-no

    check port 80:

    netstat -a | grep LISTEN | grep 80

man netstat
to learn more details
0
 
bummerlordCommented:
That would be true for netstat shipped with recent(?) Linux distributions.
Not Solaris netstat though... (unsure about Sol9)

If you have the administrator install "lsof" on the system, you could use "lsof -i :80" to list processes bound to port 80 for instance (and alot more...).

/b

0
 
ahoffmannCommented:
get and install lsof http://www.sunfreeware.com/
0
 
JIEXACommented:
man fuser
0
 
liddlerCommented:

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Points split yuzh & bummerlord

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now