|
-
Jul 4th, 2007, 02:36 PM
#1
Thread Starter
New Member
[2005] An established connection was aborted!
Hi All,
I've got a really simple/stupid question I'm sure!
I've never really done anything in Vb.NET and sockets so this is my first attempt. Anyway, I want to pull together a simple app that will check a number of ports on a remote machine. Let's say my app will check that port 80, 25 and others are available. So if 25 does not respond I can make a fair assessment that there may be a problem with the SMTP server!
So, the code I thought would be simple....
Code:
Dim tcpClient As New System.Net.Sockets.TcpClient()
tcpClient.Connect(<the ip address>, <the port>)
However, using the same ip address I can test port 80 and all is well. If I test port 25 I get an error "A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll" and a popup window tell me that "An established connection was aborted by the software in your host machine" on the tcpClient.Connect line
What am I missing here? Is this the wrong way to do it?
Thanks
David
-
Jul 9th, 2007, 10:38 AM
#2
Re: [2005] An established connection was aborted!
Hi.
Port 25 is used by SMTP to send email.
Port 110 is used to receive email POP3.
"The dark side clouds everything. Impossible to see the future is."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|