- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Determine who is binding to a port
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО09-21-2005 06:34 AM
тАО09-21-2005 06:34 AM
what application/program has bound to a port?
I have an app that is supposed to bind to port 3000, but when it tries it gets rejected because the port is already open by another app. Is there a way to find out who that other app is?
Thanks much,
jls
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 06:38 AM
тАО09-21-2005 06:38 AM
Solutionlsof -i tcp | grep $Port_Number
if you do not have lsof, you can obtain it from:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.76/
hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 06:41 AM
тАО09-21-2005 06:41 AM
Re: Determine who is binding to a port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 06:47 AM
тАО09-21-2005 06:47 AM
Re: Determine who is binding to a port
Its very easy using lsof,
# cd /usr/local/bin
# ./lsof -i:3000
It will list all those who have bind to that port.
If you do not have lsof get it from:
http://hpux.cs.utah.edu
Example:
# ./lsof -i:23
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
inetd 1158 root 6u inet 0x4b39fc68 0t0 TCP *:telnet (LISTEN)
telnetd 20935 root 0u inet 0x4b393268 0t0 TCP sapsrv12:telnet->sapsrv12:62951 (ESTABLISHED)
telnetd 20935 root 1u inet 0x4b393268 0t0 TCP sapsrv12:telnet->sapsrv12:62951 (ESTABLISHED)
-----------------------------
Enjoy ..
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 07:28 AM
тАО09-21-2005 07:28 AM
Re: Determine who is binding to a port
Thanks,
jls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 07:40 AM
тАО09-21-2005 07:40 AM
Re: Determine who is binding to a port
This happens when instllation is not proper, or you have not downloaded the wrong file , that is of not correct version,. Have you downloaded for 11.11 and PA-RISC version.
hth,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 07:44 AM
тАО09-21-2005 07:44 AM
Re: Determine who is binding to a port
Any way , you can download the binary directly from here , and gunzip it and can be run ,
This is for hp-ux 11.11
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/B.11.11/lsof_4.7
6.gz
After downloading and transfering to server do:
# gunzip lsof_4.76.gz
# mv lsof_4.76 lsof
# chmod +x lsof
# ./lsof -i:3000
Enjoy,
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 07:44 AM
тАО09-21-2005 07:44 AM
Re: Determine who is binding to a port
Make sure you downloaded the right version. If not do it again. If you believe, you have downloaded the right one, let us know your machine model, os revision etc.. the vital statistics
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 07:46 AM
тАО09-21-2005 07:46 AM
Re: Determine who is binding to a port
Seems the above link may not work:
Try this for download:
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2005 07:54 AM
тАО09-21-2005 07:54 AM
Re: Determine who is binding to a port
Thanks so much for all of you for your assistance.
jls