AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  how to open certain port?

    Posted Tue June 26, 2007 05:52 AM

    Originally posted by: SystemAdmin


    Hi, here's my story:

    I'm running application upon AIXv5.3 with hostname 'serverA', and the app listens certain ports waiting for clients coming in, like 48009, 48100 etc, so I must make sure the ports are opened, then I tried to connect to every port one by one with command tn:

    #tn serverA 48100

    unfortunately the result shows only port 48009 is open. The app is keeping running, and I checked the file /etc/services, in which every port I need has been decleared.

    So, any clue? Thanks in advanced


  • 2.  Re: how to open certain port?

    Posted Tue June 26, 2007 08:19 AM

    Originally posted by: MarkTaylor


    stupid question, but what app is listening on that port ? and have you actually started the app ? if you have and it is not listening on that port then you need to config the app to do so ..

    So, on localhost do the following:

    netstat -Aan | grep -i list ## will show all ports that are listening
    netstat -Aan | grep <your port number> ## will see what is open on that port

    If you see your app listening, then

    tn 0 <port number>

    If this all works, then you must be telnetting from another host and there is a firewall in the way.

    Rgds
    Mark Taylor