<?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: how to free the port in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956083#M290971</link>
    <description>If you have the "lsof" command installed, you can use "lsof -i tcp:6010" to find out exactly which process is using the port.&lt;BR /&gt;&lt;BR /&gt;Are you using SSH?&lt;BR /&gt;&lt;BR /&gt;The port number 6010 is generally used for the 10th X11 display. If you use SSH with X11 forwarding, this is the first display number that SSH uses for X11 forwarding by default. This maps to DISPLAY value "&lt;HOST&gt;:10.0".&lt;BR /&gt;&lt;BR /&gt;If this port is not free when a connection with X11 forwarding is requested, SSH automatically uses port 6011 or above.&lt;BR /&gt;&lt;BR /&gt;If you need the port 6010 for other purposes, edit the sshd_config file (usually in /opt/ssh/etc) to change the X11DisplayOffset value from 10 to 11, restart sshd, disconnect all existing SSH connections with X11 forwarding enabled, and the port should become free.&lt;/HOST&gt;</description>
    <pubDate>Tue, 06 Mar 2007 04:10:47 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2007-03-06T04:10:47Z</dc:date>
    <item>
      <title>how to free the port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956081#M290969</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am using rp8420 server with 11.11 version.My client wants to run some application in port 6010.He is not able to run that application on that port.We check the port by giving commands as netstat -an | grep 6010&lt;BR /&gt;tcp        0      0  10.4.13.218.16010      10.4.13.218.51895       TIME_WAIT&lt;BR /&gt;tcp        0      0  10.4.13.218.51895      10.4.13.218.16010       TIME_WAIT&lt;BR /&gt;tcp        0      0  10.4.13.218.16010      10.4.13.218.51965       TIME_WAIT&lt;BR /&gt;&lt;BR /&gt;I am getting o/p like this.&lt;BR /&gt;&lt;BR /&gt;Can u plz tell me how to free up the port.</description>
      <pubDate>Mon, 05 Mar 2007 23:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956081#M290969</guid>
      <dc:creator>rahul90</dc:creator>
      <dc:date>2007-03-05T23:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to free the port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956082#M290970</link>
      <description>&lt;!--!*#--&gt;If you're looking for use of port 6010, you&lt;BR /&gt;might get less misleading output from a&lt;BR /&gt;command like:&lt;BR /&gt;&lt;BR /&gt;netstat -an | grep '.6010 '&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;td176&amp;gt; netstat -an | grep '.23 '&lt;BR /&gt;tcp        0      2  15.170.178.176.23      209.98.249.184.11373    ESTABLISHED&lt;BR /&gt;tcp        0      0  *.23                   *.*                     LISTEN&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I don't see port 6010 in your "netstat -an"&lt;BR /&gt;output.&lt;BR /&gt;&lt;BR /&gt;It might help if you explained what the&lt;BR /&gt;application is, and exactly what "not able to&lt;BR /&gt;run" means.  I'd guess that a busy port 6010&lt;BR /&gt;is not your problem.</description>
      <pubDate>Tue, 06 Mar 2007 00:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956082#M290970</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-03-06T00:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to free the port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956083#M290971</link>
      <description>If you have the "lsof" command installed, you can use "lsof -i tcp:6010" to find out exactly which process is using the port.&lt;BR /&gt;&lt;BR /&gt;Are you using SSH?&lt;BR /&gt;&lt;BR /&gt;The port number 6010 is generally used for the 10th X11 display. If you use SSH with X11 forwarding, this is the first display number that SSH uses for X11 forwarding by default. This maps to DISPLAY value "&lt;HOST&gt;:10.0".&lt;BR /&gt;&lt;BR /&gt;If this port is not free when a connection with X11 forwarding is requested, SSH automatically uses port 6011 or above.&lt;BR /&gt;&lt;BR /&gt;If you need the port 6010 for other purposes, edit the sshd_config file (usually in /opt/ssh/etc) to change the X11DisplayOffset value from 10 to 11, restart sshd, disconnect all existing SSH connections with X11 forwarding enabled, and the port should become free.&lt;/HOST&gt;</description>
      <pubDate>Tue, 06 Mar 2007 04:10:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956083#M290971</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-03-06T04:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to free the port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956084#M290972</link>
      <description>&amp;gt;Steven: you might get less misleading output from a command like:&lt;BR /&gt;netstat -an | grep '.6010 '&lt;BR /&gt;&lt;BR /&gt;Since "." is special to grep, shouldn't that be:&lt;BR /&gt;netstat -an | fgrep '.6010 '&lt;BR /&gt;or:&lt;BR /&gt;netstat -an | grep '\.6010 '&lt;BR /&gt;&lt;BR /&gt;(Can anyone spare 2 points? ;-)</description>
      <pubDate>Tue, 06 Mar 2007 04:19:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956084#M290972</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-06T04:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to free the port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956085#M290973</link>
      <description>Yes, the dot that separates the port from the IP address (note, Linux's netstat uses a colon as port separator) should be quoted because a single dot in grep "regex" represents any character.&lt;BR /&gt;Thus rajeshraj actually hasn't grepped for port 6010 as intended to but port 16010 (didn't he?).&lt;BR /&gt;I prefer awk or perl, but because of more widespread availability of awk stick rather with it, like e.g.&lt;BR /&gt;&lt;BR /&gt;# netstat -an -f inet|awk '$4~/\.5666$/'&lt;BR /&gt;tcp        0      0  *.5666                 *.*                     LISTEN&lt;BR /&gt;tcp        0      0  10.25.9.136.5666       10.25.8.8.64525         TIME_WAIT&lt;BR /&gt;&lt;BR /&gt;(above it's the port of NRPE for my Nagios monitoring)&lt;BR /&gt;&lt;BR /&gt;I would think that a TIME_WAIT socket state is nothing to worry about as this is the final stage before the socket is actually closed,&lt;BR /&gt;and it is only reached after the remote end has acknowledged the close request as well.&lt;BR /&gt;Most of the times one has rather to fight with sockets lingering in FIN_WAIT_2 stage where the remote end yet hasn't acknowledged the closing (maybe because some firewall severed the connection after a certain time of inactivity)&lt;BR /&gt;I would assume that the TIME_WAIT sockets will simply disappear after a while.&lt;BR /&gt;I'm sure that by some ndd param you can enforce a shutdown after a certain timeout but one normally shouldn't activate this because of the peril of possible data loss.&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Mar 2007 05:08:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956085#M290973</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-03-06T05:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to free the port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956086#M290974</link>
      <description>&amp;gt; Since "." is special to grep, shouldn't that be:&lt;BR /&gt;&amp;gt; netstat -an | fgrep '.6010 '&lt;BR /&gt;&amp;gt; or:&lt;BR /&gt;&amp;gt; netstat -an | grep '\.6010 '&lt;BR /&gt;&lt;BR /&gt;Probably the latter.  I doubt that grep cares&lt;BR /&gt;whether the dot is quoted using "" or ''.&lt;BR /&gt;&lt;BR /&gt;At least I got the space right.  Sigh.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Mar 2007 08:59:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956086#M290974</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-03-06T08:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to free the port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956087#M290975</link>
      <description>From your post, it doesn't look like there is any service listening on that port 6010.&lt;BR /&gt;&lt;BR /&gt;I know some applications are very picky about the entry in /etc/services, even though the port is not actively used.&lt;BR /&gt;&lt;BR /&gt;grep 6010 /etc/services&lt;BR /&gt;&lt;BR /&gt;Do you see anything ?</description>
      <pubDate>Tue, 06 Mar 2007 09:51:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956087#M290975</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2007-03-06T09:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to free the port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956088#M290976</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;If you think this issue is resolved please assign points and close this thread.&lt;BR /&gt;&lt;BR /&gt;Looks like you have not assigned points at all (0 out of 26) assigning points is a nice way to appreciate the people who are spending their valuable time helping you.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;HGN&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Mar 2007 10:00:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-free-the-port/m-p/3956088#M290976</guid>
      <dc:creator>HGN</dc:creator>
      <dc:date>2007-03-06T10:00:33Z</dc:date>
    </item>
  </channel>
</rss>

