<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Netstat on tech.notes</title>
    <link>https://newblog.utzer.de/tags/netstat/</link>
    <description>Recent content in Netstat on tech.notes</description>
    <generator>Hugo</generator>
    <language>de</language>
    <lastBuildDate>Thu, 14 Mar 2019 23:42:02 +0000</lastBuildDate>
    <atom:link href="https://newblog.utzer.de/tags/netstat/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>lsof - local open ports</title>
      <link>https://newblog.utzer.de/2019/03/15/lsof-local-open-ports/</link>
      <pubDate>Thu, 14 Mar 2019 23:42:02 +0000</pubDate>
       <guid isPermaLink="false">http://tech.utzer.de/?p=21</guid> 
      <description>&lt;p&gt;A short one:&lt;/p&gt;
&lt;h3 id=&#34;command&#34;&gt;Command&lt;/h3&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;lsof -i -P -n | grep LISTEN
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will output all the ports the system is listing on. You might have to prepend &amp;ldquo;sudo&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;So then the command will be:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo lsof -i -P -n | grep LISTEN
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The list is long without the &amp;ldquo;grep&amp;rdquo;, it will filter the output and only show the lines which contain &amp;ldquo;LISTEN&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;Edit:&lt;br&gt;
Oliver from &lt;a href=&#34;https://fediverse.party/en/hubzilla/&#34;&gt;Hubzilla&lt;/a&gt; (part of the &lt;a href=&#34;https://fediverse.party/en/fediverse/&#34;&gt;Fediverse&lt;/a&gt;) pointed out that&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
