Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 104183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:14:29+00:00 2026-05-11T01:14:29+00:00

I’ve just created a WCF service/client and it all works fine when running on

  • 0

I’ve just created a WCF service/client and it all works fine when running on the same machine. But can’t figure out how to configure it to run on different machines. Do you know how?

At the moment the URI is set to http://localHost:8000……

But I think I want something like net.tcp://MyServer:8000…..

Any ideas would be great. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:14:30+00:00Added an answer on May 11, 2026 at 1:14 am

    From what it sounds like, you have both the service and client in the same executable. While this can be done, when you want them on separate machines you need to have an executable/host for the service (either self hosted, or in IIS) and an executable for the client. Each will need to be properly configured with the address, binding, and contract in the appropriate configuration section for it. So on the server you’d have something like this:

    <configuration>     <system.serviceModel>         <services>             <service name='YourService'>                 <endpoint address='http://MyServer:8000/...'                           binding='BasicHttpBinding'                           contract='Your.IContract' />             </service>         </services>     </system.serviceModel> </configuration> 

    And on the client you’d have this:

    <configuration>     <system.serviceModel>         <client>             <endpoint address='http://MyServer:8000/...'                       binding='BasicHttpBinding'                       contract='Your.IContract'                       name='ClientEndpoint' />         </client>     </system.serviceModel> </configuration> 

    The main thing is to make sure that the client and server can communicate with each other over the specified port and protocol (primarily making sure a firewall isn’t blocking communication). The other thing to be aware of is changing your binding protocol may impact other aspects of your service (security is a big one, but also what you can and cannot do with the service).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just created an iPhone app and am having friends try it out, but
Just created a WSS site with a some custom web-parts. But I get an
I just started learning on WCF and is trying to create a WCF service
I have a WCF service which all operations return type is OperationStatus: [DataContract] public
I created a WCF Service that I'm passing a stream to on a request.
I have a .NET, WCF web service (created in PowerBuilder 12.5.1) hosted on an
I created a WCF service that exposed a method that has one paramater: public
I'm trying to create a client for a WCF service that I have hosted
Should one use the generated WCF service client (e.g. MyServiceClient) when invoking a WCF
I'm just about done with a WCF Service that allows me to remote database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.