I've made a program in WCF. Where client send data to host. It is working perfectly whenI run host and server on same pc
my server side is
host.AddServiceEndpoint(typeof(IHelloService), binding, new Uri("http://localhost:9000"));
my client side is
var cli = new ChannelFactory<ihelloservice>(new BasicHttpBinding(), new EndpointAddress("http://localhost:9000"));
var ch = cli.CreateChannel();
but when I tried to use that on LAN it doesn't work.I put my host pc ip at locathost but i didn't work...
You're telling your client that your service is located at http://localhost:9000 meaning on the client PC.
you have to correct the address in your client, eg. http://192.168.1.100:9000
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)