<?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: Cannot create socket because port is busy in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-socket-because-port-is-busy/m-p/2464166#M772558</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;While 'netstat -an' will show you the ports in use, you will need 'lsof' to determine what process is bound to the port.&lt;BR /&gt;&lt;BR /&gt;A very interesting site on UNIX socket programming is:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/" target="_blank"&gt;http://www.lcg.org/sock-faq/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is generally easier if you don't bind() a port number in your client program, but rather let the system choose one with the connect() call.  A discussion of this appears here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/detail.php3?id=37" target="_blank"&gt;http://www.lcg.org/sock-faq/detail.php3?id=37&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Look also specifically at these:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/detail.php3?id=40" target="_blank"&gt;http://www.lcg.org/sock-faq/detail.php3?id=40&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/detail.php3?id=44" target="_blank"&gt;http://www.lcg.org/sock-faq/detail.php3?id=44&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/detail.php3?id=235" target="_blank"&gt;http://www.lcg.org/sock-faq/detail.php3?id=235&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The last two links deal specifically with SO_RESUSEADDR.  Setting this may eliminate your problem.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Sun, 12 Nov 2000 00:16:06 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2000-11-12T00:16:06Z</dc:date>
    <item>
      <title>Cannot create socket because port is busy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-socket-because-port-is-busy/m-p/2464164#M772556</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We are trying bind a socket in our appication&lt;BR /&gt;it gives a bind error saying that port is &lt;BR /&gt;busy.This is on HPUX-11.0&lt;BR /&gt;&lt;BR /&gt;When we do netstat -n , we cannot get any &lt;BR /&gt;information regarding that particular port is being used.&lt;BR /&gt;&lt;BR /&gt;Do anyone have any clue what the problem is ?&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Deepak&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Nov 2000 05:59:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-socket-because-port-is-busy/m-p/2464164#M772556</guid>
      <dc:creator>Deepak_3</dc:creator>
      <dc:date>2000-11-11T05:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create socket because port is busy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-socket-because-port-is-busy/m-p/2464165#M772557</link>
      <description>try using netstat -an to see if the port already exists and is in a LISTEN state.&lt;BR /&gt;&lt;BR /&gt;have you attempted to telnet to the port?&lt;BR /&gt;# telnet host port_number&lt;BR /&gt;&lt;BR /&gt;also look for the port number in /etc/services and /etc/inetd.conf</description>
      <pubDate>Sat, 11 Nov 2000 08:23:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-socket-because-port-is-busy/m-p/2464165#M772557</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2000-11-11T08:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create socket because port is busy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-socket-because-port-is-busy/m-p/2464166#M772558</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;While 'netstat -an' will show you the ports in use, you will need 'lsof' to determine what process is bound to the port.&lt;BR /&gt;&lt;BR /&gt;A very interesting site on UNIX socket programming is:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/" target="_blank"&gt;http://www.lcg.org/sock-faq/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is generally easier if you don't bind() a port number in your client program, but rather let the system choose one with the connect() call.  A discussion of this appears here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/detail.php3?id=37" target="_blank"&gt;http://www.lcg.org/sock-faq/detail.php3?id=37&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Look also specifically at these:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/detail.php3?id=40" target="_blank"&gt;http://www.lcg.org/sock-faq/detail.php3?id=40&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/detail.php3?id=44" target="_blank"&gt;http://www.lcg.org/sock-faq/detail.php3?id=44&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lcg.org/sock-faq/detail.php3?id=235" target="_blank"&gt;http://www.lcg.org/sock-faq/detail.php3?id=235&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The last two links deal specifically with SO_RESUSEADDR.  Setting this may eliminate your problem.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 12 Nov 2000 00:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-socket-because-port-is-busy/m-p/2464166#M772558</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-12T00:16:06Z</dc:date>
    </item>
  </channel>
</rss>

