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!

opening an ip adress port 1

Status
Not open for further replies.

neab

Technical User
Oct 14, 2004
24
SN
I have a Risc server with AIX 5.2 ML5 and when I perform telnet <ip adress> <port #> (telnet 192.168.0.9 1620) from a windows station, I will get an error of this

connection at 192.168.0.9 .....: unable to open a connection at host on the port 1620 : fail to connect

But i can open a session doing telnet 192.168.0.9

What must i do to open port 1620
Thanks for helping
 
firewall
tcp wrappers
is it connecting through inetd?

There is more than one explanation.
 
What process do you have bound to port 1620? Is it defined in /etc/services and managed with inetd through /etc/inetd.conf? Or do you have to have a specific daemon running which manages it?
 
Well, if you type "telnet 192.168.0.9", it uses te well known port of the telnet protocol, which is 23. Thus it is like you were typed "telnet 192.168.0.9 23".

Most likely your server runs inetd daemon which listens on port 23. When it receives a connection request, it spawns a telnet daemon and transfers the TCP socket to it. Then you can communicate with telnet daemon, typing your commands happily.

If you want to establis a telnet session using port 1620, you have to configure inetd to handle this port.
This is done by entering a line into /etc/inetd.conf:
Code:
telnet  stream  tcp6    nowait root /usr/sbin/telnetd telnetd -a
(this ONE line)

then reread inetd configuration by running
"refresh -s inetd"

Now you can test it on your windows box with this command:
telnet 192.168.0.9 1620

--Trifo

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top