Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-21-2004, 10:03 AM   #1
LQ Newbie
Registered: Oct 2002
Location: NC
Distribution: Mandrake
Posts: 12

Rep: Reputation: 0
Telnet to non standard port question

I want to telnet to a nonstandard telnet port (say 2043). Currently doing so at term will cause no local echo. From the telnet man page, starting telnet then going open host -port works fine, negotiates like I was telneting on port 23.

By making a telnetrc file that contains this:
environ undefine user
mode character
I get close to what I want but not quite, there is a difference especially in recalling commands.

Does anyone know what to change in either the telnetrc or elsewhere to make telneting to nonstandard ports use normal negotiation?


Let me know if any other information would be useful.
Old 04-21-2004, 10:13 AM   #2
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
All you have to do is "telnet machine port"

For instance, something I use is telnet localhost 80, which telnets me to the 80 port that a web server lives on. Then I'll issue a GET / or some other thing.

If you're not getting any text on your screen from when you're telneting, then that's a different issue entirely. There shouldn't be anything you have to change in order to get this to work properly.

Last edited by Technoslave; 04-21-2004 at 10:14 AM.
Old 04-21-2004, 10:17 AM   #3
LQ Newbie
Registered: Oct 2002
Location: NC
Distribution: Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for your response.

Telnet source port does not result in text echoing with the port not being 23 (which is really the key problem.) From the telnet man page, doing a telnet, then open source -port (the - is key) gets me the correct negotiation, thus the correct echo.

The objects I'm telneting to are terminal servers (ala Xyplex) to allow for multiple port access to multiple hardware. If one of the ports is 23, it works correctly if the port is anything else, no go.

The telnetrc file from my earlier post gets me echo, but not the normal command set (such as up arrow for recalling commands, etc..)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
vsftpd on non-standard port baronsam Linux - Networking 3 08-21-2006 03:40 PM
Proftp with non standard port ryedunn Linux - Software 5 04-08-2006 10:36 PM
Using an USB port as a standard DB9 Serial Port Lsteele Linux - Newbie 1 10-22-2005 09:48 AM
Can I Modify The Telnet Server To Listen To Non-Standard Ports? windisch Linux - Security 7 11-16-2004 02:47 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration