Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems opening port 9998

Status
Not open for further replies.

erica057

Programmer
Sep 19, 2005
2
US
Hi there,

I have been trying to open port 9998 on an AIX box to no avail. This machine is not connected to the internet and I have only been accessing it locally, so I know it's not a network firewall/proxy issue. I have tried editing /etc/services and inetd.conf, refreshing inetd.conf, and also starting the subsystem in smit. Still, the port is not open. Is there anything that I am missing? I've tried everything that I can think of (killing the inetd process and re-creating it, disabling IP security, etc.).

Thanks!
Erica
 
What application, or how are you trying to open the port?
 
kHz, this is for a custom Java application. I wrote a new entry for it in /etc/services. I've tried to open in in inetd.conf, as well as smit's interface for administering subsystems. Thanks in advance!
 
Try using ksh to connect to a socket to see what happens.

Code:
exec 3<> /dev/tcp/hostname/portnum
this will open a tcp connection for reading and writing on file descriptor 3. You can then use read and print statements with the file descriptor (3).
 
Or
Code:
$ date=
$ read date < /dev/tcp/127.0.0.1/13
$ echo $date
 
kHz -

What version of AIX are you on? /dev/tcp access, which I would love to have, isn't present on 5100-04.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
I was on a Solaris server at the time. AIX doesn't appear to have it. It should be able to be created using mknod and make it a character file with permissions of rw-rw-rw. Major/minor is 42,0 on my server but I would think any major number would work.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top