Quote:
Originally Posted by erica057
I have been trying to open port 9998 on an AIX 5.1
Hi Erica,
a "port" is a construct on layer 4 (where TCP, UDP, etc. are working) and doesn't need to be "opened".
If you want to use a specific port you just have to configure a daemon to listen (and react) to that port. Take for instance the "lpd" port 515: you can "use" this port for any arbitrary purpose, but by default (and because of historical tradition) the lpd daemon is listening there.
You could try to communicate with this daemon by issuing "telnet <printer.network.com> 515" and the daemon would still answer (of course it won't be able to handle telnet connections, but you should get a banner from the printer saying something like: 'HP JetDirect ...blah blah... can't handle your protocol'). In fact this is an easy way to find out if a network printer is still listening and ready to accept jobs without actually sending some printjob to it and waste paper.
Havig said this, the only thing you have to do is to configure your daemon to listen to port 9998. How this is done depends entirely on the daemon, Oracle listeners (for instance) are configured in a file listener.ora, other daemons are configured in inetd.conf, etc.
The next thing after configuring and starting the daemon is to check if it is running (ps) and if it is listening correctly. Again you can try "telnet localhost 9998" and see what comes up. You will get an error anways, but if the daemon is working correctly you might get
something whereas you will get nothing if it doesn't.
I know, this answer is fairly general, but to analyze your problem more specific you will have to describe it in less general but more secific terms.
Hope this helps.
bakunin