Telnet to port | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Telnet to port

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-11-2010
anwesh anwesh is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 18 March 2011, 2:18 PM EDT
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Telnet to port

can some one help me ?

what happens when we telnet to a port ?
example
telnet 192.168.0.xx 1234

where 1234 is a port number

Thank you
Sponsored Links
    #2  
Old 01-11-2010
pludi's Avatar
pludi pludi is offline Forum Advisor  
Cat herder
 
Join Date: Dec 2008
Last Activity: 28 March 2014, 8:35 AM EDT
Location: Vienna, Austria, Earth
Posts: 5,522
Thanks: 38
Thanked 335 Times in 308 Posts
You'll have to be more specific on what you want to know. Basically, the telnet command will try to establish a TCP connection to the gives address (IP+Port) using the underlying network stack. What happens afterward depends on the hardware in between, any firewalls and ACLs in effect, and the service listening on the other side (if any).
Sponsored Links
    #3  
Old 01-11-2010
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
 
Join Date: Sep 2008
Last Activity: 1 July 2013, 6:45 PM EDT
Location: Malvern, Worcs. U.K.
Posts: 1,033
Thanks: 0
Thanked 8 Times in 8 Posts
Telnetting to a particular port rather than the standard port 23 for telnet can be a useful test to see if something is listening on a port, e.g. to see if a machine is running a SSH daemon on port 22 the you do:

Code:
$ telnet localhost 22
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.1p1 Debian-6ubuntu2
^]
telnet> quit
Connection closed.
$

Whereas testing to see if my machine (or a remote machine) is serving DNS:

Code:
$ telnet localhost 53
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
$

in this case the answer is not...
    #4  
Old 01-12-2010
Vit0_Corleone's Avatar
Vit0_Corleone Vit0_Corleone is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 25 March 2014, 10:04 AM EDT
Posts: 146
Thanks: 18
Thanked 3 Times in 3 Posts
try to run the following command on the DNS Server
Code:
 netstat -an

and check if bind is started and listening on the 53 port number
Sponsored Links
    #5  
Old 01-12-2010
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
 
Join Date: Sep 2008
Last Activity: 1 July 2013, 6:45 PM EDT
Location: Malvern, Worcs. U.K.
Posts: 1,033
Thanks: 0
Thanked 8 Times in 8 Posts
Running

Code:
$ telnet <remotemachine> netstat

can be useful on machines that have not been hardened.
Sponsored Links
    #6  
Old 01-12-2010
anwesh anwesh is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 18 March 2011, 2:18 PM EDT
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Thank you
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Telnet IP and Port Script asou Shell Programming and Scripting 6 11-03-2009 07:51 AM
telnet on specific port?? zing_foru UNIX for Advanced & Expert Users 6 05-27-2008 07:51 AM
Any freeware ftp tool for telnet ( port 23 ) ? thambi UNIX for Dummies Questions & Answers 4 03-14-2007 04:20 PM
disabled telnet now need port 23 or port 22 panzerkw Solaris 3 03-05-2007 02:08 PM
block telnet to specific port xiamin IP Networking 5 03-20-2002 07:51 PM



All times are GMT -4. The time now is 06:55 AM.