[CentOS] how to open a tcp port?

Spook ZA spookza at gmail.com
Wed Mar 3 11:58:46 UTC 2010


On 3 March 2010 13:46, hadi motamedi <motamedi24 at gmail.com> wrote:
>
>
>>
>>
>> All ports are open, but you really need some service to listen that port.
>>
>> --
>> Eero
>> _______________________________________________
>
> Thank you . So why 'telnet 172.16.17.132 4965' cannot get through ?

As Eero said, you need to make sure something is listening on that port.

Try: netstat -ant and look for:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address
     State
tcp        0      0 0.0.0.0:4965                0.0.0.0:*
     LISTEN

or pipe it to grep if the server is busy (netstat -ant | grep 4965)

Regards,
  Andrew.


More information about the CentOS mailing list