[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

"machine actively refused it" error

Allan McLemore

12/31/2002 5:49:00 AM

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.
3 Answers

(Mike Clay (MSFT))

12/31/2002 9:23:00 PM

0

If you have any type of Norton software running, disable it, and give it a
try.

Mike Clay, MCSD
Beta Technical Support


This posting is provided "AS IS" with no warranties, and confers no rights.
© 2002 Microsoft Corporation. All rights reserved.

Allan McLemore

1/2/2003 2:25:00 AM

0

I have no anti-virus apps running at all !

>-----Original Message-----
>If you have any type of Norton software running, disable=20
it, and give it a=20
>try.
>
>Mike Clay, MCSD
>Beta Technical Support
>
>
>This posting is provided "AS IS" with no warranties, and=20
confers no rights.=20
>=A9 2002 Microsoft Corporation. All rights reserved.=20
>
>.
>

Girish Bharadwaj

1/3/2003 7:43:00 PM

0

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