I was wondering if anyone knows any good console winsock client applications. All I need to know is how to make one that connects to a server on port 25 and sends some commands. If it's not too much to ask, a server source code would be nice too. Thanks in advance
That Person
Where I first learned:
http://gametutorials.com/Tutorials/Network...working_Pg1.htm.
Well commented, easy-to-learn WinSocket [2] examples..
You might not be able to use port 25 (unless you are trying to connect to an existing service), as, generally, ports under 2000 are reserved.
correctiion, ports under 1025 are reserved
above are free to use
He did say he was connecting to a server on port 25. So I would persume he's connecting to a smtp server to send email or something.
If you just want to connect and send commands use telnet.
Great tool. Will connect to any port and you can just type the command.
If you are connecting to 25 you better know how to talk SMTP. PS If you are trying to work out if the mail host can be used as a spam relay your a bad person.
if you just want to connect to port 25 (mainly smtp) you could just get ncat.
http://www.atstake.com/research/tools/network_utilities/it doesn't always work that great because it only gives you what the server sends, but i find it useful.