Please try the following code snippet to test if this is a general TCP/IP problem:
using System.Diagnostics;
using System.Net;
using System.Net.Sockets;
...
try
{
IPAddress address = IPAddress.Parse("205.178.145.65");
IPEndPoint endPoint = new IPEndPoint(address, 21);
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
socket.Connect(endPoint);
Trace.WriteLine("Connected OK");
socket.Close();
}
catch (Exception ex)
{
Trace.WriteLine(ex.GetType() + ": " + ex.Message + "\n" + ex.StackTrace);
}
This code works OK on my machine.
- Hans (EDT)