<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Socket Error !! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574635#M858337</link>
    <description>DO NOT use the tcp_doscon_by_addr. It is a massive, ugly KLUDGE that should never have been known outside the lab. It is definitely unsupported and should be used only at your own great peril or under the close personal supervision of HP Support people.&lt;BR /&gt;&lt;BR /&gt;If you use tusc with the verbose settings, you can see which port the command is trying to bind. Then you can use that information with lsof to see which process has the port bound and consider terminating that process. If there is no process, it could be that there are still old TCP connections in the  TIME_WAIT state laying around with that local port number &lt;BR /&gt;&lt;BR /&gt;If that is the case, the proper fix is to get the app fixed. It should be setting SO_REUSEADDR before calling bind(). Anything else is merely treating a symptom, perhaps in ways that will come back to bite you.</description>
    <pubDate>Tue, 04 Sep 2001 17:28:40 GMT</pubDate>
    <dc:creator>rick jones</dc:creator>
    <dc:date>2001-09-04T17:28:40Z</dc:date>
    <item>
      <title>Socket Error !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574632#M858334</link>
      <description>I am running a Cadence tool called "icms".I am able run this tool graphically on my system, however if i invoke this in the command-line mode "icms -nograph", i get the following error :&lt;BR /&gt;==============================&lt;BR /&gt;Binding TCP Socket: Address already in use &lt;BR /&gt;cannot establish tcp listening socket: Address already in use &lt;BR /&gt;Trying to connect an existing tcp listening socket... &lt;BR /&gt;*WARNING* Unable to open -nograph X Window Display&lt;BR /&gt;==============================&lt;BR /&gt;I have checked for patch compares with similiar systems and found no difference.Can someone explain to me what these errors are and how to resolve ?&lt;BR /&gt;&lt;BR /&gt;System details are as follows:&lt;BR /&gt;&lt;BR /&gt;OS Revision: HP-UX 11.00&lt;BR /&gt;Main Memory:  8388 MB&lt;BR /&gt;Swap :  22970 MB&lt;BR /&gt;Model:  9000/785/J6000&lt;BR /&gt;No of CPUs :  2&lt;BR /&gt;CPU Speed (in MHz):  552&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Sep 2001 10:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574632#M858334</guid>
      <dc:creator>Monit Kapoor</dc:creator>
      <dc:date>2001-09-04T10:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Socket Error !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574633#M858335</link>
      <description>Hi Monit,&lt;BR /&gt;&lt;BR /&gt;You are giving a socket number already in use, so the bind process can not handle it.&lt;BR /&gt;&lt;BR /&gt;You may choose another free socket number and rebind.&lt;BR /&gt;&lt;BR /&gt;Magdi</description>
      <pubDate>Tue, 04 Sep 2001 10:34:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574633#M858335</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-09-04T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Socket Error !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574634#M858336</link>
      <description>You need to free up that socket. If you know the port what your application is using, you can do a netstat -an and check for the port to see what state it is in. &lt;BR /&gt;&lt;BR /&gt;You can either reboot the box to get rid of the port or use "tcp_discon_by_addr" an unsupported parameter of ndd.&lt;BR /&gt;&lt;BR /&gt;Check this thread out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xb5815220af9bd5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xb5815220af9bd5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Sep 2001 13:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574634#M858336</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-09-04T13:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Socket Error !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574635#M858337</link>
      <description>DO NOT use the tcp_doscon_by_addr. It is a massive, ugly KLUDGE that should never have been known outside the lab. It is definitely unsupported and should be used only at your own great peril or under the close personal supervision of HP Support people.&lt;BR /&gt;&lt;BR /&gt;If you use tusc with the verbose settings, you can see which port the command is trying to bind. Then you can use that information with lsof to see which process has the port bound and consider terminating that process. If there is no process, it could be that there are still old TCP connections in the  TIME_WAIT state laying around with that local port number &lt;BR /&gt;&lt;BR /&gt;If that is the case, the proper fix is to get the app fixed. It should be setting SO_REUSEADDR before calling bind(). Anything else is merely treating a symptom, perhaps in ways that will come back to bite you.</description>
      <pubDate>Tue, 04 Sep 2001 17:28:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574635#M858337</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2001-09-04T17:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Socket Error !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574636#M858338</link>
      <description>Thnaks for all your responses.However i ran tusc and all i saw was error like EADDRINUSE after a while.I have rebooted many times and also ensured no other apps are using sockets.spoke to the developer team and they said the app is OK coz the same binary runs fine on other systems.Also please note that the same binary runs ok in the graphical mode.The socket error only comes in "-nograph" mode.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Sep 2001 06:29:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-error/m-p/2574636#M858338</guid>
      <dc:creator>Monit Kapoor</dc:creator>
      <dc:date>2001-09-06T06:29:27Z</dc:date>
    </item>
  </channel>
</rss>

