tags:

views:

223

answers:

1

I have created and deployed the wcf service on server as a windows service, with url in app.config as "http://localhost:portnumber/...." I am accessing this wcf service from browser of client machine(Client machine is different from server) by using url "http://servername:portnumber/......" but I am not able to access it because it seems my client request redirected to localhost and not to server. Can anyone help me regarding this?

My another question related to this is do I have to deploy service using servername in the url or localhost is all right, what is the best way?

+1  A: 

Change the URL in the config file to point to the actual server. That's all you need to do.

localhost is their local machine, or when you're developing your local machine, which is why it works in development.

blowdart
I am trying to access the methods in the WCF service from another machine through mozilla or IE using the url "http://servername:portnumber/....." I don't have any client created.
Dhananjay
OK but even if you use the browser to test the service is up you need to put in the proper server name, not localhost.
blowdart