LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2005, 05:06 PM   #1
lukasbradley
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
Netstat - Why is it truncating the foreign address?


Can anyone help me understand why the foreign address field is being truncated below in netstat?

Code:
[gamesuser@www p2p]$ netstat -n
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 225.16.45.117:80        82.241.78.19:2399       SYN_RECV
tcp        0      0 225.16.45.117:80        203.51.235.139:1326     SYN_RECV
tcp        0      0 127.0.0.1:33749         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33748         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33757         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33758         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33733         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33776         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33779         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33778         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33765         127.0.0.1:8009          TIME_WAIT
tcp        0      0 127.0.0.1:33766         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33774         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33708         127.0.0.1:8009          ESTABLISHED
tcp        0      0 127.0.0.1:33661         127.0.0.1:8009          ESTABLISHED
tcp        0   1588 225.16.45.117:19334     71.56.108.157:3320      ESTABLISHED
tcp        0      0 ::ffff:225.16.45.1:9999 ::ffff:65.93.136.2:3241 ESTABLISHED
tcp        0      0 ::ffff:225.16.45.117:80 ::ffff:83.153.19.1:1726 TIME_WAIT
tcp        0      0 ::1:33777               ::1:443                 TIME_WAIT
tcp        0      0 ::ffff:225.16.45.1:9999 ::ffff:203.51.235.:1221 ESTABLISHED
tcp        0      0 ::ffff:225.16.45.1:9999 ::ffff:65.93.136.2:1763 ESTABLISHED
tcp        0      0 ::ffff:225.16.45.117:80 ::ffff:65.93.136.2:3798 TIME_WAIT
tcp        0      0 ::ffff:225.16.45.1:9999 ::ffff:172.169.240:3914 ESTABLISHED
 
Old 09-24-2013, 03:21 PM   #2
zadok-zab
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Rep: Reputation: Disabled
It's for backward compatibility with any program that expects to always find each field at the same column, e.g. the State field is always at column 69.

If you want untruncated output, try the -W option.

Last edited by zadok-zab; 09-24-2013 at 03:22 PM. Reason: consistency
 
1 members found this post helpful.
Old 09-25-2013, 09:26 AM   #3
lukasbradley
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by zadok-zab View Post
It's for backward compatibility with any program that expects to always find each field at the same column, e.g. the State field is always at column 69.

If you want untruncated output, try the -W option.
Wow. You're quite the dedicated forum member. Posted in 2005!

Thanks for the answer!
 
Old 09-25-2013, 01:40 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,283

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by lukasbradley View Post
Wow. You're quite the dedicated forum member. Posted in 2005!

Thanks for the answer!
And my hat's off to you for being so patient in waiting for your answer. Eight years. And you had the courtesy to reply back and say "thanks!" Good show!
 
Old 09-25-2013, 07:00 PM   #5
zadok-zab
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by lukasbradley View Post
Wow. You're quite the dedicated forum member. Posted in 2005!

Thanks for the answer!
You're welcome! I actually only just joined, having arrived here from a web search with the same question, and finding that I couldn't sleep until an answer was recorded here for posterity

Last edited by zadok-zab; 09-25-2013 at 07:01 PM. Reason: restore lost text
 
Old 07-06-2018, 05:21 PM   #6
DexterF
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
Me, too
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to obtain someone's ip address through netstat dr_zayus69 Linux - Networking 5 08-14-2005 12:06 AM
netstat reporting wrong IP address? Donboy Linux - Networking 2 04-14-2005 01:44 AM
netstat foreign address abbreviated eliotstock Linux - Networking 1 10-17-2004 05:42 PM
netstat, how to show what address are connected? trey85stang Slackware 2 12-30-2003 03:56 PM
Truncating a string nkendrick Linux - General 5 11-29-2003 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration