Girish Bharadwaj
1/3/2003 7:43:00 PM
I have seen this happen if you have any sort of firewall. It almost seems
like you are seeing a rejection from the machine on the other end. Does
that machine you are attempting to connect have a client watching that
port?
On Mon, 30 Dec 2002 20:49:08 -0800, Steve <a@a.com> wrote:
> Hey,
>
> I'm connected to a 56K dial-up ISP and when using
> the following code with my own, or any other IP address,
> I get the following error:
>
> Error message:
> No connection could be made because the target machine actively refused
> it
>
> Error code: 10061
> - I think!
>
> Code:
> // Assume "IPaddress" is a valid dotted-quad here
> System.Net.IPEndPoint ipEndPoint = new
> System.Net.IPEndPoint(System.Net.IPAddress.Parse
> (IPaddress), 7070);
> this.tcpClient = new System.Net.Sockets.TcpClient();
> this.tcpClient.Connect(ipEndPoint);
> this.networkStream = this.tcpClient.GetStream();
>
> Any ideas whats going on?
>
> How can I connect to another machine or even my own?!
>
> Thanks,
> Steve.
>
--
Girish Bharadwaj