- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem while opening a client socket
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
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
тАО08-06-2008 10:19 PM
тАО08-06-2008 10:19 PM
problem while opening a client socket
I am facing one strange issue with my application running on HP-UX 11iv3.It tries to open a client socket with a service running at port 6670.
#netstat -an |grep 6670
tcp 0 0 *.6670 *.* LISTEN
#telnet 127.0.0.1 6670
Trying...
Connected to 127.0.0.1.
Escape character is '^]'.
the service rejects the client's connect request with errno 239(connection refused) .
Could somebody help me here to figure out why the service is refusing connect request .
Thanks,
Best Regards
Sudhir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2008 10:49 PM
тАО08-06-2008 10:49 PM
Re: problem while opening a client socket
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2008 11:55 PM
тАО08-06-2008 11:55 PM
Re: problem while opening a client socket
As Torsten said you should identify the server by e.g.
# lsof -nPi tcp:6670 | awk '/LISTEN/{print$2}'|xargs ps -fp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2008 12:03 AM
тАО08-07-2008 12:03 AM
Re: problem while opening a client socket
Here is the output..
#/usr/local/bin/lsof -nPi tcp:6670 | awk '/LISTEN/{print$2}'|xargs ps -fp
UID PID PPID C STIME TTY TIME COMMAND
smsdba 4520 4519 0 13:22:14 pts/tb 0:00 /opt/OC/lbin/ftc_mibproxy -MibService ha_ftcmib -FtcService ha_ftchb
the service "ha_ftcmib" is supposed to listen on 6670(configured in /etc/services) .
#/usr/local/bin/lsof |grep ha_ftc
ftc 4519 smsdba 4u IPv4 0x115b119400 0t0 TCP *:ha_ftc (LISTEN)
ftc 4519 smsdba 6u IPv4 0x115b5fc680 0t0 TCP *:ha_ftchb (LISTEN)
ftc 4519 smsdba 7u IPv4 0x115b2b0d00 0t0 TCP *:ha_ftchboam (LISTEN)
ftc 4519 smsdba 8u IPv4 0x1159c66c80 0t0 TCP localhost:ha_ftchb->localhost:49635 (ESTABLISHED)
ftc 4519 smsdba 9u IPv4 0x1159c66080 0t0 TCP localhost:ha_ftchb->localhost:49636 (ESTABLISHED)
ftc_mibpr 4520 smsdba 3u IPv4 0x115ad78680 0t0 TCP localhost:49635->localhost:ha_ftchb (ESTABLISHED)
ftc_mibpr 4520 smsdba 4u IPv4 0x115b36f980 0t0 TCP *:ha_ftcmib (LISTEN)
ftc_mibpr 4520 smsdba 5u IPv4 0x1159c66380 0t0 TCP localhost:49636->localhost:ha_ftchb (ESTABLISHED)
Thanks,
Best Regards
Sudhir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2008 12:16 AM
тАО08-07-2008 12:16 AM
Re: problem while opening a client socket
are youy experiencing problems with that service on that port? Or are you complaining that just why telnet on port 6670 is refusing connections in that way?
Have you other systems configured with that service listening on port 6670? If so have you the same behaviour on those ones?
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2008 04:58 AM
тАО08-07-2008 04:58 AM
Re: problem while opening a client socket
clear the port using lsof and try connecting
check
#netstat -an |grep 6670
It is not neccessary that port is also available for telnet....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2008 05:11 AM
тАО08-07-2008 05:11 AM
Re: problem while opening a client socket
There are servers where the server side initiates the communication (I think SSH is such a candidate), and loads of other which wait for the client to pass the proper cue first.