So I never realized this before but certain IP addresses will get truncated in Redhat/CentOS distro’s. Â Not sure if others distro’s will share this feature but something to pay attention to. Â They say that the netstat output field is limited to 80 chars. Â Seems like it would be wiser for them to remove some of the whitespace between the columns than to truncate the IP and I’m sure others have made the mistake as I did by grabbing
Example:
tcp     0   91 ::ffff:10.100.0.100  ::ffff:204.204.204.14:51067 ESTABLISHED
204.204.204.14 really should be 204.204.204.140. Â Never noticed this until I was looking at tcpdump.
A better command to run than netstat is ss, that will also display the correct IP. Â man ss for more detailed help.