<?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 and Port problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061062#M575229</link>
    <description>While us of the ndd kludge may treat the symptom, it will not cure the disease, which likely as not is a broken server application.  Server applications should set SO_REUSEADDR before trying to bind() to their well-known port numbers.  This will allow them to be restarted while there are old endpoints in any state other than listen.</description>
    <pubDate>Wed, 03 Sep 2003 19:00:32 GMT</pubDate>
    <dc:creator>rick jones</dc:creator>
    <dc:date>2003-09-03T19:00:32Z</dc:date>
    <item>
      <title>Socket and Port problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061055#M575222</link>
      <description>Hello,&lt;BR /&gt;I have a N Class HPUX 11.00 server. Another server was connected to this server on port 5000 and then the service died, but the socket seems to be alive, because the first server cannot bind to this port.&lt;BR /&gt;&lt;BR /&gt;[196] srv1 # lsof -i:5000&lt;BR /&gt;[197] srv1 # netstat -a | grep 5000&lt;BR /&gt;tcp 0  0  srv1.5000   srv2.1557   ESTABLISHED&lt;BR /&gt;&lt;BR /&gt;lsof returns me nothing, how can I kill this socket to free this port?&lt;BR /&gt;&lt;BR /&gt;thanx.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Sep 2003 05:58:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061055#M575222</guid>
      <dc:creator>Alex Lavrov</dc:creator>
      <dc:date>2003-09-02T05:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Socket and Port problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061056#M575223</link>
      <description>Hi,&lt;BR /&gt;check these thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x553dec08252fd611abd50090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x553dec08252fd611abd50090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbe06a22d6d27d5118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbe06a22d6d27d5118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;They have the solution for you.&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Sep 2003 06:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061056#M575223</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-09-02T06:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Socket and Port problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061057#M575224</link>
      <description>To clear such socket connections, you can &lt;BR /&gt;&lt;BR /&gt;1. Use  ndd to force close the connection&lt;BR /&gt;Take a look at this thread(Steven gave the solution):&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbe06a22d6d27d5118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbe06a22d6d27d5118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. Find the IP of the remote connection and reboot it (if it is a PC).</description>
      <pubDate>Tue, 02 Sep 2003 06:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061057#M575224</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-09-02T06:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Socket and Port problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061058#M575225</link>
      <description>I think it's what I need, but now I have a problem to find this connection, tcp_status gives me a lot of output, I tried to convert IP and PORT to HEX, but none of these strings do not appera there, any ideas?&lt;BR /&gt;thanx.</description>
      <pubDate>Tue, 02 Sep 2003 08:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061058#M575225</guid>
      <dc:creator>Alex Lavrov</dc:creator>
      <dc:date>2003-09-02T08:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Socket and Port problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061059#M575226</link>
      <description>Always from the same thread:&lt;BR /&gt;&lt;BR /&gt;or example, if the connection that I want to delete is:&lt;BR /&gt;&lt;BR /&gt;Local IP: 192.1.2.3 (0xc0010203)&lt;BR /&gt;Local Port: 1024 (0x0400)&lt;BR /&gt;Remote IP : 192.4.5.6 (0xc0040506)&lt;BR /&gt;Remote Port: 2049 (0x0801)&lt;BR /&gt;&lt;BR /&gt;The "hex" string you pass to tcp_discon_by_addr is:&lt;BR /&gt;&lt;BR /&gt;# ndd -set /dev/tcp tcp_discon_by_addr "c00102030400c00405060801" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;using address information, that you have, should solve the problem. just resolv srv1 and srv2 to hex, like in the example.&lt;BR /&gt;&lt;BR /&gt;    Massimo</description>
      <pubDate>Tue, 02 Sep 2003 08:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061059#M575226</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-09-02T08:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Socket and Port problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061060#M575227</link>
      <description>forgetting:&lt;BR /&gt;&lt;BR /&gt;197] srv1 # netstat -a | grep 5000&lt;BR /&gt;tcp 0 0 srv1.5000 srv2.1557 ESTABLISHED &lt;BR /&gt;&lt;BR /&gt;here you have the info !&lt;BR /&gt;&lt;BR /&gt;   Massimo</description>
      <pubDate>Tue, 02 Sep 2003 08:13:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061060#M575227</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-09-02T08:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Socket and Port problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061061#M575228</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;From the same example:&lt;BR /&gt;&lt;BR /&gt;# ndd -get /dev/tcp tcp_status &lt;BR /&gt;TCP dest snxt suna swnd cwnd rnxt rack rwnd rto mss [lport,fport] state &lt;BR /&gt;&lt;BR /&gt;0183b8b4 015.043.233.086 533cb8ce 533cb8ce 00008000 00003000 533bc583 533bc583 00000000 02812 04096 [c00a,cea9] TCP_CLOSE_WAIT &lt;BR /&gt;&lt;BR /&gt;Note that remote IP is not in HEX format, in this case is 015.043.233.086.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Tue, 02 Sep 2003 08:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061061#M575228</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-09-02T08:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Socket and Port problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061062#M575229</link>
      <description>While us of the ndd kludge may treat the symptom, it will not cure the disease, which likely as not is a broken server application.  Server applications should set SO_REUSEADDR before trying to bind() to their well-known port numbers.  This will allow them to be restarted while there are old endpoints in any state other than listen.</description>
      <pubDate>Wed, 03 Sep 2003 19:00:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-and-port-problem/m-p/3061062#M575229</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2003-09-03T19:00:32Z</dc:date>
    </item>
  </channel>
</rss>

