Use ss command on Linux to dump socket statistics. It allows showing information similar to netstat. It can display more TCP and state information than other tools.