WCF Connection could not be established because the target machine actively refused

I just implemented a simple WCF server using net.tcp.

First, I use 127.0.0.1both the server address and the client, which is able to connect the WCF service.

Everthing ok. But when I try to use the internal IP 192.x.x.x, I get an error:

No connection can be made because the target machine actively refused it

Any idea what might trigger this?

Best regards

PS: I disabled auth on WCF. Even turn off the firewall everything ... Doesn't work ...

+3
source share
4 answers

192.x.x.x , ? , , TCP (- ), , "localhost" , .

+6

, , . . WCF netTcpBinding

( )...

  • " " ( ).
  • " Windows"
  • ( VS2012) " .NET Framework 4.5" → " WCF"
  • " TCP"
+5

, , "listenUri", <clientVia>. /. , .

, IIS, :

  • (.NET 4 etc/security)
  • NET.TCP , " " -/ ( ) : . HTTP, net.tcp

, IIS, (URLACL). http://msdn.microsoft.com/en-us/library/ms733768.aspx

, Windows , . Net.Tcp.

+4

Visual Studio , , . , Properties > Web > Auto-Assign Port, , silverlight . 1318 .web.

+1
source

All Articles