--numeric-ports option for netstat
Clash 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.
netstat
add a comment |Â
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.
netstat
add a comment |Â
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.
netstat
$ 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.
netstat
edited Feb 19 at 0:31
asked Feb 18 at 3:30
jsf80238
1164
1164
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Feb 18 at 10:16
ErikF
2,7111413
2,7111413
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password