Operating System - HP-UX
1819824 Members
3025 Online
109607 Solutions
New Discussion юеВ

how to open telnet port 23

 
SOLVED
Go to solution
Salm
Frequent Advisor

how to open telnet port 23

hi every one

My two D class servers andmy laptop connected through network switch. I confugured etc/hosts file at both serverd to communicate each other. Now the problem is. if I use hyperterminal at my lap top as console. I can log in my server and can telnet each machine. if I use DOS promt instead. It won't let me use telnet service even I use Ip address or server name. The msg comes " could not open connection to the host, on port 23 connection failed""

please advice how to configure my network where I could telnet from my laptop to my both HP d class servers ??all these machines atteched with network switch.

thanks
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: how to open telnet port 23

Shalom,

Note it may be a network device that is blocking telnet, check that first. By default in HP-UX telnet is enabled.

vi /etc/inetd.conf

See the line for telnetd

Make sure its not commented. if it is, uncomment it.

Save the file.

inetd -c

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Salm
Frequent Advisor

Re: how to open telnet port 23

hi stephen

thanks for suggestion.

I checked it there is no coments in inetd file for telnetd

is there any other parameters file need to be chenge or to be configured ???
Steven E. Protter
Exalted Contributor

Re: how to open telnet port 23

Nope, make sure inetd is actually running.

Try telneting to localhost

telnet localhost
telnet .
telnet

if it works but not from outside the box then its not a problem on the box. If it does not work see that ipfilters the only firewall product I know of that works on HP-UX is not running and blocking the port.

telnet is often blocked btw, because it authenticates in clear text. That means every time you log in the entire network can see your password.

Please consider point assignment if these answers have been helpful.

:-)

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Hein van den Heuvel
Honored Contributor

Re: how to open telnet port 23

Tried ssh instead of telnet?

The hyperterm connection is NOT using any network on your laptop, just the serial port.

So is the network on the laptop set up correctly? Can you see 'the world'?
What addresses does it have according to dos: cmd> ipconfig /all

Is it in the same network as the servers?
matching masks?

How smart/dumb is the switch?
DHCP serving to all?
Mac sensitive?
Private lans?

Can you ping the servers? ftp? ssh?

Good luck,
Hein.
Court Campbell
Honored Contributor

Re: how to open telnet port 23

I seems odd that you can telnet from box to box, but not from your laptop. Please post the ip of your servers and the ip address of your laptop. I have a feeling you don't have your networking setup correctly on your laptop.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Salm
Frequent Advisor

Re: how to open telnet port 23

my 1st Hp server ip is 192.168.1.151
2nd box ip is 192.168.152

my note book shown following confguration when I run ipconfig /all cmd


ip address : 192.168.0.139
subnet mask: 255.255.255.0
Default Gateway 192.168.0.1
DHCP server 192.168.0.1
DNS server 192.168.1.1
Hein van den Heuvel
Honored Contributor
Solution

Re: how to open telnet port 23

Well there you go. That's the problem.
They are in different networks:

192.168.0 vs 192.168.1

You may want to temporarely hardcode a 192.168.1 network address or maybe try a simple cmd> ipconfig / renew while connected to the switch/hub/router with the servers.

If you do pick a new hardcoded address for the laptop (network --> properties --> tcp ...), then be sure to ping is first from those servers to make it less likely that it is in use. I'd be tempted to pick 192.168.1.149, or 192.168.1.139.

Cheers,
Hein.


Salm
Frequent Advisor

Re: how to open telnet port 23

I founf aa solution from one of my freind.I was making mistake in subnetting.

Now my laptop is allow me to connect with both boxes through telnet.
thnax all you guy and appreciate for you time
Court Campbell
Honored Contributor

Re: how to open telnet port 23

Come on. I basically pointed out your issue and you gave me 1 point. That is pretty lame.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Salm
Frequent Advisor

Re: how to open telnet port 23

hi court

sorry for that.Actually I was in hurry to set up this thing. I posted my ip addresses and wait around 2 hours then I called to my freind in USA and he worked out.

Still I'm very sorry and next time will not hesitate to give you points. thanks