WCF - service access address aliased
I am inexperienced in WCF so this question may be real basic...
<br>
I have a WCF service hosted in IIS of a server named "Server1". This server is aliased and visible from the open Internet as ServerAlias.mydomain.com.<br>
While developing the consumer application, I add a service reference to the service in Server1 and deploy it. When executing it remotely, the app looks for the service on "Server1.mydomain.com" but it can only be accessed through "ServerAlias.mydomain.com".<br><br>
Is there a way that I can reference the service in Server1 in design-time, and in run-time the application looks in "ServerAlias"?

Thanks!
WCF - service access address aliased
===

I am inexperienced in WCF so this question may be real basic...
<br>
I have a WCF service hosted in IIS of a server named "Server1". This server is aliased and visible from the open Internet as ServerAlias.mydomain.com.<br>
While developing the consumer application, I add a service reference to the service in Server1 and deploy it. When executing it remotely, the app looks for the service on "Server1.mydomain.com" but it can only be accessed through "ServerAlias.mydomain.com".<br><br>
Is there a way that I can reference the service in Server1 in design-time, and in run-time the application looks in "ServerAlias"?

Thanks!