1

I tried this tutorial for .NET TopShelf: http://lourenco.co.za/blog/2013/08/wcf-windows-service-using-topshelf-and-servicemodelex/ and everything works fine on localhost, but when I run Client app on other PC with host IP in app.config aplication return an exception in Program.cs in Client app in line:

var response = proxy.Service.Introduce(request);  

The error message says: "tcp error code 10061 no connection could be made because the target machine actively refused it"

I've got windows firewall off. What can I do to connect two computers in LAN network using TopShelf?

tom redfern
  • 30,562
  • 14
  • 91
  • 126
maniek099
  • 319
  • 4
  • 19
  • Have you checked if the server machine has the port unblocked? Also it sometimes helps for the service to be running in Network Service. if not I'm assuming you've already seen this http://stackoverflow.com/a/9695442/933007 – Steven Dall Oct 18 '14 at 20:38
  • Yes i've seen this. I have got firewall turned off, on server pc netstat shows my service on: 0.0.0.0:500123 [WCFService.WidnowsService.vshost.exe] and it still doesn't work. Telnet on client can't see my server. Is there any other way to resolve this problem? – maniek099 Oct 26 '14 at 10:21
  • I'm at a bit of a loss, the only other thing I can think of is, are you able to connect to the pc normally? and are the 2 computers on the same workgroup/domain/subnet. Also make sure you are running with NotworkService host and not local service host – Steven Dall Oct 29 '14 at 11:32
  • I suggest you look at the following - user running the service, firewall on both PCs. also, your port number is 500123? That seems like it's out of range of any port number. – João Lourenço Dec 08 '15 at 09:12

0 Answers0