Could not open connection to the host, on port 23: connection failed

I am trying to connect to my cisco router,
i can connect through console but when i try to telnet it shows:
" Could not open connection to the host, on port 23: connection failed "
here is my conf:
line vty 0 4
access-class 23 in
password 7 ............
login local
transport input telnet
transport output telnet

this is the current configuration i tried a lot of things but it didn't work even when i tried to login using hyper terminal to telnet its ip its not working
N.B I am able to ping to the routers IP
ANy suggestions please
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Remove the "access-class 23 in" under the line vty 0 4. The access-list is probalby preventing you from coming in.
do you have an ACL 23 to permit you network as the following

access-list 23 permit
access-list 23 permit
access-list 23 permit
access-list 23 permit

plus here is a working config.

line vty 0 4
 access-class 23 in
 exec-timeout 120 0
 length 0
 transport preferred all
 transport input all
 transport output all


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSH / Telnet Software

From novice to tech pro — start learning today.