views:

38

answers:

0

I am attempting to generate a proxy for a client to call a service with WCF. I have been successful in creating the Client/Server relationship on the localhost, but can't seem to get things working while running the Server app on a second computer within my home intranet. I understand that the base address to the service needs to be supplied to the client app. I have copied the relevant code below. Can anyone steer me in the right direction?

Client Service model:

proxy = ChannelFactory<IClientService>.CreateChannel(new BasicHttpBinding(), new EndpointAddress("http://musicserver-pc:8010"));

Server Ap.Config:

<baseAddresses>
   <add baseAddress="http://localhost:8010" />
</baseAddresses>