- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I know what is running on a TCP 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
Forums
Discussions
Discussions
Discussions
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
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-16-2002 01:03 AM
09-16-2002 01:03 AM
I have been trying to install XNTPD on one of my server, but the port 123 seems to be already in use by another application. When starting xntpd I got the following error message :
13 Sep 18:57:33 xntpd[1599]: bind() fd 10, family 2, port 123, addr 8264ffff, in_classd=0 flags=0 fails: Address already in use
Does someone can tell me how I could find which application is running on this port ?
Many thanks,
Chris.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 01:08 AM
09-16-2002 01:08 AM
Re: How can I know what is running on a TCP port
lsof will show you what is using a TCP port. You can download from;
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/
Once installed you do;
lsof -i | grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:03 AM
09-16-2002 02:03 AM
Re: How can I know what is running on a TCP port
Another idea, or if someone have the 64b version of lsof (HP-UX 11.00) ?
Many thanks,
Chris.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:09 AM
09-16-2002 02:09 AM
Re: How can I know what is running on a TCP port
There should not be any problem.
Can you try the attached binary?
Hope this Helps!
Best Regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:15 AM
09-16-2002 02:15 AM
Re: How can I know what is running on a TCP port
It should be ntp...
perhaps try stopping and restarting it..
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:16 AM
09-16-2002 02:16 AM
SolutionSend me an email and I will reply with a 64bit version of lsof attached.
There have been tons of questions and replies about this lately but ive just checked most of them and they all point to lsof v4.64 - which is NOT a 64bit version (the .64 is just a subversion number).
Cheers,
Stefan
Stefan_Farrelly@ipcmedia.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:35 AM
09-16-2002 02:35 AM
Re: How can I know what is running on a TCP port
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/binaries/hpux/B.11.00/vxfs/
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:37 AM
09-16-2002 02:37 AM
Re: How can I know what is running on a TCP port
Another idea ?
Cheers,
Chris.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:44 AM
09-16-2002 02:44 AM
Re: How can I know what is running on a TCP port
I have seen this error before. It's due to the wrong configuration of ntpd environment.
Do you set your server to be a ntp server or a ntp client ?
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:47 AM
09-16-2002 02:47 AM
Re: How can I know what is running on a TCP port
I seem to recall one of 2 possibilities;
1. you need a later patch for ntp. You can check on itrc.hp.com under individual patches for ntp patches (do a search).
2. Even after you start xntpd (/sbin/init.d/xntpd start) have you checked the ntp daemon didnt start even though it produced an error ? (ps -ef|grep ntp) Does this command work; ntpq -p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:48 AM
09-16-2002 02:48 AM
Re: How can I know what is running on a TCP port
This server is a client.
Here is the ntp.conf file for this machine :
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
server 127.127.1.1 # local clock
fudge 127.127.1.1 stratum 3 # Allow local Synchro.
broadcastclient no # Not a Broadcast Client
driftfile /var/adm/syslog/ntp.drift # Drift File
statsdir /var/tmp/ntp/ # Statistics Directory
statistics loopstats # Enable Stats
statistics peerstats # Enable Stats
filegen loopstats file loopstat type week enable # 1 week stat only
filegen peerstats file loopstat type week enable # 1 week stat only
filegen clockstats file clockstats type week enable # 1 week stat only
server pita.housing21.co.uk version 3 # Internal Stratum 2 Server
peer titan.housing21.co.uk version 3 # Internal Stratum 3 Peer
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Many thanks,
Chris.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 09:03 PM
09-16-2002 09:03 PM
Re: How can I know what is running on a TCP port
Have you checked udp as well?
# lsof -i udp:123
Hope this helps. Regards.
Steven Sim Kok Leong