I am using netstat command to get processes on a port like: netstat -n -P tcp6 | grep 31210

I get results in Linux but in case of Solaris I get the following error:

tcp6: unknown protocol.

How to get tcp6 connections on Solaris?

share|improve this question
2  
There is no tcp6 protocol; it is a convention for tcp over IPv6. Have you tried netstat -n -f inet6 -P tcp ... ? – user4556274 Dec 12 '16 at 15:00
    
So why does Linux show output for tcp6? – Batty Dec 12 '16 at 15:01
4  
@Batty: tcp6 is just short for TCP over IPv6. It's not a protocol but a shortcut to make the output of netstat easier to read. – Steffen Ullrich Dec 12 '16 at 15:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.