Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-04-2007, 06:53 AM   #1
LQ Newbie
Registered: Mar 2007
Posts: 8

Rep: Reputation: 0
incomplete remote address with netstat

Hi I have a (probably) stupid question about netstat output. I've not been able to find something good from google.

What can I do to obtain the remote end of the tcp socket, I mean the complete ip address ? My problem is that whatever option I use, I have always the same
problem : the remote address is truncated....perhaps for the "ffff" that is added......

For example, a portion of the output from netstat -tv :

tcp6 0 0 ::ffff: ::ffff:192.168.227:4932 ESTABLISHED
tcp6 0 0 ::ffff: ::ffff:192.168.227:1039 ESTABLISHED
tcp6 0 0 ::ffff: ::ffff:192.168.227:2137 ESTABLISHED

Do you know if it is possible to obtain in someway the full ip of the address ?

The point is that on some other machines, the same command "netstat -tv" gives all complete foreign address......

Why this different behaviour ?

The version is the same, on both machines :

netstat -V
net-tools 1.60
netstat 1.42 (2001-04-15)

Any idea please?
Old 12-05-2007, 09:22 AM   #2
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
So are you actually using IPv6 ? because that is the format the addresses appear to be coming back as.. (tcp6)

you could always remove IPv6 if you are not using it and that would probably clear up your confusion..

reported 'bugs' on this issue..
Old 12-05-2007, 01:23 PM   #3
LQ Newbie
Registered: Mar 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Well've got the right point!

Tnx a lot for your help.
Old 12-11-2007, 11:15 AM   #4
Registered: Sep 2005
Posts: 38

Rep: Reputation: 15
I was about to post a similar question, how do you get netstat to output the complete remote address in "domain name" format?

The output is always truncated, for short URLs like "" this is not a problem, but for longer URLs it looks like:

www.somesitewithlongna:4932 ESTABLISHED

I just made that up, but you get the idea.


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
NETSTAT utility - what does Local Address mean? PostEnlite Linux - Networking 2 09-29-2006 11:13 PM
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

All times are GMT -5. The time now is 07:33 PM.

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