LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2009, 06:57 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
telnet ipaddress port not connecting


Hi all...

In a remote machine port 25 is open its enabled in firewall also...but not able to connect through telnet..why ?

netstat -an | grep 25
Code:
tcp        0      0 0.0.0.0:44525               0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:9021              127.0.0.1:52527             ESTABLISHED 
tcp        0      0 127.0.0.1:25                127.0.0.1:53250             ESTABLISHED
telnet <ipaddress> 25
Code:
telnet 172.17.65.206 25
Trying 172.17.65.206...
telnet: connect to address 172.17.65.206: No route to host
Can Anyone please help me...

Thanks in advance....

Last edited by vinaytp; 11-11-2009 at 07:02 AM.
 
Old 11-11-2009, 07:19 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by vinaytp View Post
Hi all...

In a remote machine port 25 is open its enabled in firewall also...but not able to connect through telnet..why ?

netstat -an | grep 25
Code:
tcp        0      0 0.0.0.0:44525               0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:9021              127.0.0.1:52527             ESTABLISHED 
tcp        0      0 127.0.0.1:25                127.0.0.1:53250             ESTABLISHED
telnet <ipaddress> 25
Code:
telnet 172.17.65.206 25
Trying 172.17.65.206...
telnet: connect to address 172.17.65.206: No route to host
Can Anyone please help me...

Thanks in advance....
because only localhost listens on port 25.


if sendmail, you need to edit this line in sendmail.mc

Code:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

or even add another line

Code:
DAEMON_OPTIONS(`Port=smtp,Addr=172.17.65.206, Name=MTA')dnl

or just go with this

Code:
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
for listening on all addresses

Last edited by centosboy; 11-11-2009 at 07:25 AM.
 
Old 11-11-2009, 07:24 AM   #3
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by vinaytp View Post
telnet <ipaddress> 25
Code:
telnet 172.17.65.206 25
Trying 172.17.65.206...
telnet: connect to address 172.17.65.206: No route to host
That there "no route to host" message is telling you it's not a port issue - it's unable to find the machine with the IP address 172.17.65.206. Can you ping it? Are they on the same subnet? What's the address of the machine you're trying to telnet *from*?

John G
 
Old 11-11-2009, 07:56 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by JohnGraham View Post
That there "no route to host" message is telling you it's not a port issue - it's unable to find the machine with the IP address 172.17.65.206. Can you ping it? Are they on the same subnet? What's the address of the machine you're trying to telnet *from*?

John G
well it is kind of a port issue.

172.17.65.206 - is not listening on port 25
 
  


Reply



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
Error while connecting with telnet naw_deepak Linux - General 3 01-12-2009 09:58 PM
Telnet not connecting akhtar.bhat Linux - Networking 3 02-04-2008 02:04 AM
pinging ipaddress with port number linuxmandrake Linux - Networking 3 01-14-2006 10:45 PM
error while connecting through telnet anurag1510 Red Hat 4 09-20-2005 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:16 AM.

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