UnaBomber:
Telnet is an application layer protocol, the port is defined at layer 4. The reason it is defined is so that Applications written to use telnet know which port to accept data streams on. If you change the port, you will have to have an application that supports that port, and allows for communications.
Yeah, like every application written for either Windows or Linux. Do you know of one which is uselessly fixed to a single port? With Putty, for example you can Telnet on any port whose address is not too wide to be represented in Putty or more probably the width limited by TCP itself (layer 4), whatever that may truly be.
Thats why I specifically mentioned the server would have to be configured for the proper port.
dupas
I just want to see if they can talk to eachother through port 25. If so then this program that I have trying to email forms out should work properly due to it being able to see/talk to the SMTP server.
Oh, sorry dupas, but I have to say what you're trying to do is much more difficult than it is worth doing. The Port number is simply an sub-address on the machines themselves, there is no need to test the “port”.
Think of it like this. There is a college with an address 123 main street, anytown USA and you want to send a professor at that college a telegram. You don’t know the professors name, but you do know he teaches SNMP in room 25.
So you send him a message with an SNMP question to room 25 and hope that he sends a response. OK, in this case, you don’t hear back from him. What you are trying to do now is send a Telnet question to room 25 instead. Well, the problem is, the professor that teaches Telnet is usually in room 23 – so why would you send him a telegram in room 25? You wouldn’t.
That is to say, obviously you are trying to test your method of communication (or more specifically the address for the college) but you have to test a known proper configuration. You have two choices really – call the college and ask the telnet professor to go to room 25 and wait for a telegram, or send a telnet telegram to room 23 and see if you hear back from him.
In this case though, the telnet professor has probably been fired for chasing the female students, so don’t expect a response from him. Rather you should try the SSH professor in room 22 (he is more politically correct and should still be working there). If you don’t know if any professors are really there or even if the school is in session, but you still want to test the address, you can’t send your telegram to administrator PING – he is always there making sure things run smoothly.
So here is the point, if you can ping one machine from another, there is no point trying to Telnet or SSH or SMTP to test the connection. The one thing they have in common is TCP/IP and if it works for PING it will work for the other protocols (that is after all specifically what ping is for). If PING is working and SMTP is not, then either your SMTP server or client is not configured properly. Using Telnet will tell you nothing new and might not be installed and definitely is not configured properly to use port 25.
Haha – did I make that too long?
OK - the short version. Trying pinging one machine from the other. If that works and neither are using a fire wall (make sure there really is no firewall) then your next step is checking the configuration for both the SMTP server and the SMTP client.