We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Telnet connection refused to localhost at port 4242

Hi all,

I am using Ubuntu 10.4 LTS and I need to get telnet server on my machine to work (connect) to localhost at port 4242. I tried:

~> telnet localhost 4242
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

*telnet does work (for example on port 23).
Tried to flush/open possible firewall issues by using:

~> sudo ip6tables --flush
~> sudo iptables --flush
~> sudo ufw allow 4242

And still nothing works. Also used nmap to scan open ports on localhost ( sudo nmap localhost ) and port 4242 doesn't appear there.

What am I missing? How can I configure telnet server to be opened on port 4242?
Thanks a bunch!
-Ruslan

1
Contributor
1
Reply
50 Minutes
Discussion Span
1 Year Ago
Last Updated
3
Views
Question
Answered
FelineHazard
Light Poster
46 posts since Feb 2012
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

Ok there is a partial solution to that:
by editing /etc/services I can change telnet port from 23 to 4242. Is it possible to add a port? Meaning that telnet connections be made both through 23 and 4242?

Thanks a bunch,
-R

FelineHazard
Light Poster
46 posts since Feb 2012
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0
Question Self-Answered as of 1 Year Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0642 seconds using 2.63MB