[CentOS] how to open a tcp port?

Rajagopal Swaminathan raju.rajsand at gmail.com
Wed Mar 3 12:33:16 UTC 2010


Greetings,

On Wed, Mar 3, 2010 at 5:51 PM, hadi motamedi <motamedi24 at gmail.com> wrote:
>

> # netstat -ant |grep 4965
> tcp        0      0 0.0.0.0:4965            0.0.0.0:*               LISTEN
> # netstat -anp |grep 4965
> tcp        0      0 0.0.0.0:4965            0.0.0.0:*
> LISTEN      1090/iptrans
> # lsof -i |grep 4965
> iptrans    1090 root   21u  IPv4       1764       TCP *:4965 (LISTEN)
> On that machine , the 'telnet ip-addr 4965' can get through . So which

Hati, lets see, you have machine 1 and machine 2

let us say you are sitting on machine 1
you are trying to telnet into machine 2 to port 4965

First sit on machine 2 and do telnet localhost 4965
Are you able to?

If yes, then telnet <machine 2 IP> 4965
If succesful try telnet from machine 1 using telnet <machine 2 IP> 4965

It is on the machine 2 you should be opening up the port 4965

Regards

Rajagopal



More information about the CentOS mailing list