- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Finding port number of a service
Operating System - HP-UX
1777025
Members
2250
Online
109062
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2000 10:43 PM
тАО04-26-2000 10:43 PM
Finding port number of a service
How can one get a list of all the services running on an hp-ux server along
with the port numbers they are using? I am aware that some information can be
obtained from /etc/services but what about services not listed in
/etc/services?
Thanks!
Raghu
with the port numbers they are using? I am aware that some information can be
obtained from /etc/services but what about services not listed in
/etc/services?
Thanks!
Raghu
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2000 11:27 PM
тАО04-26-2000 11:27 PM
Re: Finding port number of a service
Try this command:
netstat -an | grep LISTEN
netstat -an | grep LISTEN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2000 09:31 PM
тАО04-27-2000 09:31 PM
Re: Finding port number of a service
Hi Paul:
When I use netstat -an | grep LISTEN I get an output similar to the following:
tcp 0 0 *.80 *.* LISTEN
tcp 0 0 *.2121 *.* LISTEN
tcp 0 0 *.37 *.* LISTEN
tcp 0 0 *.25 *.* LISTEN
tcp 0 0 *.23 *.* LISTEN
How do you tell from this output what service is running on a given port. For
example, port 80 is the web server, port 25 is the mail server, etc.
Thanks!
Raghu
When I use netstat -an | grep LISTEN I get an output similar to the following:
tcp 0 0 *.80 *.* LISTEN
tcp 0 0 *.2121 *.* LISTEN
tcp 0 0 *.37 *.* LISTEN
tcp 0 0 *.25 *.* LISTEN
tcp 0 0 *.23 *.* LISTEN
How do you tell from this output what service is running on a given port. For
example, port 80 is the web server, port 25 is the mail server, etc.
Thanks!
Raghu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2000 01:25 AM
тАО04-28-2000 01:25 AM
Re: Finding port number of a service
Well, there is no magic way to know what, say 2121 is doing. Ports 25 and 80
are well known ports and are listed in /etc/services. If someone writes a
program and does a listen on port 2121 but does not update /etc/services or
otherwise tell you about it, there is no way to forcibly extract the
information by program.
Indeed that program that is doing the listen on port 2121 may be so
disfunctional that it offers no services at all. What then?
I'm not sure what you expect a program to do about undocumented ports.
are well known ports and are listed in /etc/services. If someone writes a
program and does a listen on port 2121 but does not update /etc/services or
otherwise tell you about it, there is no way to forcibly extract the
information by program.
Indeed that program that is doing the listen on port 2121 may be so
disfunctional that it offers no services at all. What then?
I'm not sure what you expect a program to do about undocumented ports.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP