LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-04-2007, 05:53 AM   #1
TottiGol
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:212.31.234.1:ssh ::ffff:192.168.227:4932 ESTABLISHED
tcp6 0 0 ::ffff:212.31.234.1:ssh ::ffff:192.168.227:1039 ESTABLISHED
tcp6 0 0 ::ffff:212.31.234.1:ssh ::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, 08:22 AM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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..
http://groups.google.com/group/linux...14a2c1e49b7ce6
 
Old 12-05-2007, 12:23 PM   #3
TottiGol
LQ Newbie
 
Registered: Mar 2007
Posts: 8

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

Tnx a lot for your help.
 
Old 12-11-2007, 10:15 AM   #4
devmoc
Member
 
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 "www.yahoo.com" 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.
 
  


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
NETSTAT utility - what does Local Address mean? PostEnlite Linux - Networking 2 09-29-2006 10:13 PM
how to obtain someone's ip address through netstat dr_zayus69 Linux - Networking 5 08-13-2005 11:06 PM
netstat reporting wrong IP address? Donboy Linux - Networking 2 04-14-2005 12:44 AM
netstat foreign address abbreviated eliotstock Linux - Networking 1 10-17-2004 04:42 PM
netstat, how to show what address are connected? trey85stang Slackware 2 12-30-2003 02:56 PM


All times are GMT -5. The time now is 04:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration