--numeric-ports option for netstat

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












$ netstat --version
net-tools 1.60
netstat 1.42 (2001-04-15)
Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang and others
+NEW_ADDRT +RTF_IRTT +RTF_REJECT +FW_MASQUERADE +I18N
AF: (inet) +UNIX +INET +INET6 +IPX +AX25 +NETROM +X25 +ATALK +ECONET +ROSE
HW: +ETHER +ARC +SLIP +PPP +TUNNEL -TR +AX25 +NETROM +X25 +FR +ROSE +ASH +SIT +FDDI +HIPPI +HDLC/LAPB +EUI64

$ netstat --wide --inet | head -5
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.1.11:38752 jl-in-f188.1e100.net:https ESTABLISHED
tcp 0 0 192.168.1.11:50882 lga15s44-in-f14.1e100.net:https ESTABLISHED
tcp 0 0 192.168.1.11:45874 151.101.1.69:https ESTABLISHED


According to the netstat man page on my Ubuntu Linux:



 --numeric-ports
shows numerical port numbers but does not affect the resolution of host or user names.


Yet, that option seems to affect the resolution of host names, too.



$ netstat --wide --inet --numeric-ports | head -5
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.1.11:38752 209.85.200.188:443 ESTABLISHED
tcp 0 0 192.168.1.11:50882 172.217.1.78:443 ESTABLISHED
tcp 0 0 192.168.1.11:45874 151.101.1.69:443 ESTABLISHED


I expected to see host names and port numbers.







share|improve this question


























    up vote
    3
    down vote

    favorite












    $ netstat --version
    net-tools 1.60
    netstat 1.42 (2001-04-15)
    Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang and others
    +NEW_ADDRT +RTF_IRTT +RTF_REJECT +FW_MASQUERADE +I18N
    AF: (inet) +UNIX +INET +INET6 +IPX +AX25 +NETROM +X25 +ATALK +ECONET +ROSE
    HW: +ETHER +ARC +SLIP +PPP +TUNNEL -TR +AX25 +NETROM +X25 +FR +ROSE +ASH +SIT +FDDI +HIPPI +HDLC/LAPB +EUI64

    $ netstat --wide --inet | head -5
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State
    tcp 0 0 192.168.1.11:38752 jl-in-f188.1e100.net:https ESTABLISHED
    tcp 0 0 192.168.1.11:50882 lga15s44-in-f14.1e100.net:https ESTABLISHED
    tcp 0 0 192.168.1.11:45874 151.101.1.69:https ESTABLISHED


    According to the netstat man page on my Ubuntu Linux:



     --numeric-ports
    shows numerical port numbers but does not affect the resolution of host or user names.


    Yet, that option seems to affect the resolution of host names, too.



    $ netstat --wide --inet --numeric-ports | head -5
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State
    tcp 0 0 192.168.1.11:38752 209.85.200.188:443 ESTABLISHED
    tcp 0 0 192.168.1.11:50882 172.217.1.78:443 ESTABLISHED
    tcp 0 0 192.168.1.11:45874 151.101.1.69:443 ESTABLISHED


    I expected to see host names and port numbers.







    share|improve this question
























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      $ netstat --version
      net-tools 1.60
      netstat 1.42 (2001-04-15)
      Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang and others
      +NEW_ADDRT +RTF_IRTT +RTF_REJECT +FW_MASQUERADE +I18N
      AF: (inet) +UNIX +INET +INET6 +IPX +AX25 +NETROM +X25 +ATALK +ECONET +ROSE
      HW: +ETHER +ARC +SLIP +PPP +TUNNEL -TR +AX25 +NETROM +X25 +FR +ROSE +ASH +SIT +FDDI +HIPPI +HDLC/LAPB +EUI64

      $ netstat --wide --inet | head -5
      Active Internet connections (w/o servers)
      Proto Recv-Q Send-Q Local Address Foreign Address State
      tcp 0 0 192.168.1.11:38752 jl-in-f188.1e100.net:https ESTABLISHED
      tcp 0 0 192.168.1.11:50882 lga15s44-in-f14.1e100.net:https ESTABLISHED
      tcp 0 0 192.168.1.11:45874 151.101.1.69:https ESTABLISHED


      According to the netstat man page on my Ubuntu Linux:



       --numeric-ports
      shows numerical port numbers but does not affect the resolution of host or user names.


      Yet, that option seems to affect the resolution of host names, too.



      $ netstat --wide --inet --numeric-ports | head -5
      Active Internet connections (w/o servers)
      Proto Recv-Q Send-Q Local Address Foreign Address State
      tcp 0 0 192.168.1.11:38752 209.85.200.188:443 ESTABLISHED
      tcp 0 0 192.168.1.11:50882 172.217.1.78:443 ESTABLISHED
      tcp 0 0 192.168.1.11:45874 151.101.1.69:443 ESTABLISHED


      I expected to see host names and port numbers.







      share|improve this question














      $ netstat --version
      net-tools 1.60
      netstat 1.42 (2001-04-15)
      Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang and others
      +NEW_ADDRT +RTF_IRTT +RTF_REJECT +FW_MASQUERADE +I18N
      AF: (inet) +UNIX +INET +INET6 +IPX +AX25 +NETROM +X25 +ATALK +ECONET +ROSE
      HW: +ETHER +ARC +SLIP +PPP +TUNNEL -TR +AX25 +NETROM +X25 +FR +ROSE +ASH +SIT +FDDI +HIPPI +HDLC/LAPB +EUI64

      $ netstat --wide --inet | head -5
      Active Internet connections (w/o servers)
      Proto Recv-Q Send-Q Local Address Foreign Address State
      tcp 0 0 192.168.1.11:38752 jl-in-f188.1e100.net:https ESTABLISHED
      tcp 0 0 192.168.1.11:50882 lga15s44-in-f14.1e100.net:https ESTABLISHED
      tcp 0 0 192.168.1.11:45874 151.101.1.69:https ESTABLISHED


      According to the netstat man page on my Ubuntu Linux:



       --numeric-ports
      shows numerical port numbers but does not affect the resolution of host or user names.


      Yet, that option seems to affect the resolution of host names, too.



      $ netstat --wide --inet --numeric-ports | head -5
      Active Internet connections (w/o servers)
      Proto Recv-Q Send-Q Local Address Foreign Address State
      tcp 0 0 192.168.1.11:38752 209.85.200.188:443 ESTABLISHED
      tcp 0 0 192.168.1.11:50882 172.217.1.78:443 ESTABLISHED
      tcp 0 0 192.168.1.11:45874 151.101.1.69:443 ESTABLISHED


      I expected to see host names and port numbers.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 19 at 0:31

























      asked Feb 18 at 3:30









      jsf80238

      1164




      1164




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          I have net-tools 1.60_p20170221182432 (Gentoo) and it works as documented, so there may be a bug in the version that you have. If you have ss available, you can get very similar results using ss -4rn (-4: IPv4 only, -r: resolve names, -n: numeric service numbers); the difference will be the order that the data are displayed and some formatting details.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f424900%2fnumeric-ports-option-for-netstat%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            I have net-tools 1.60_p20170221182432 (Gentoo) and it works as documented, so there may be a bug in the version that you have. If you have ss available, you can get very similar results using ss -4rn (-4: IPv4 only, -r: resolve names, -n: numeric service numbers); the difference will be the order that the data are displayed and some formatting details.






            share|improve this answer
























              up vote
              2
              down vote













              I have net-tools 1.60_p20170221182432 (Gentoo) and it works as documented, so there may be a bug in the version that you have. If you have ss available, you can get very similar results using ss -4rn (-4: IPv4 only, -r: resolve names, -n: numeric service numbers); the difference will be the order that the data are displayed and some formatting details.






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                I have net-tools 1.60_p20170221182432 (Gentoo) and it works as documented, so there may be a bug in the version that you have. If you have ss available, you can get very similar results using ss -4rn (-4: IPv4 only, -r: resolve names, -n: numeric service numbers); the difference will be the order that the data are displayed and some formatting details.






                share|improve this answer












                I have net-tools 1.60_p20170221182432 (Gentoo) and it works as documented, so there may be a bug in the version that you have. If you have ss available, you can get very similar results using ss -4rn (-4: IPv4 only, -r: resolve names, -n: numeric service numbers); the difference will be the order that the data are displayed and some formatting details.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 18 at 10:16









                ErikF

                2,7111413




                2,7111413






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f424900%2fnumeric-ports-option-for-netstat%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?