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 940285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:55:48+00:00 2026-05-15T21:55:48+00:00

Ok, I have developed this WinForms client, which interacts with a server (ASPX Application)

  • 0

Ok,

I have developed this WinForms client, which interacts with a server (ASPX Application) by means of WCF calls. I would now like to deploy the server to my shared webhost, but I’m kinda new to WCF and especially the security possibilities behind it.

The goal is to kind of secure the WCF service, so that not everybody that knows or finds out the endpoint address can call it. Rather, only my WinForms client must be able to call the WCF service.

I do not need authentication on a user basis, so no authentication is required from the user of the client. But I want only instances of this WinForms client to be able to interact with the service. The information passed between server and client is not very sensitive, so it’s not really required to secure it, but it’s a plus if it can easily be done.

Is this possible with a Shared Host (IIS) environment (no HTTPS at disposal) ? What bindings and options should I use ? I suppose wsHttpBinding, but how would I setup the security options ?

Using .NET 4.0

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. Editorial Team
    Editorial Team
    2026-05-15T21:55:50+00:00Added an answer on May 15, 2026 at 9:55 pm

    From what I understand, you have an internet-facing service which you want to limit to only your client app to be able to call – correct? Or do you envision other clients (like PHP, Ruby etc.) also wanting to call into your service at some point?

    To secure your message, you have two options in WCF – message or transport security. Over the internet, with an unknown number of hops between your client and your service, transport security doesn’t work – you’re left with message security (encrypting the message as it travels across the ‘net). For this to work, you typically add a digital certificate to your service (only server-side) that the client can discover and use to encrypt the messages with. Only your service will be able to decrypt them – so you’re safe on that end.

    The next point is: who can call your service? If you want to be totally open to anyone, then yes, you need wsHttpBinding (or the RESTful variant – webHttpBinding). If you want to allow non-.NET clients, you’re typically limited to no authentication (anyone can call), or username/password schemes which you will validate on the server side against a database of valid users.

    If you only want to allow your own .NET client in, then you can do several things:

    • disable metadata on your service; with this, you would “hide” your endpoints and the services they provide – someone using a “metadata scanner” (if that exists) wouldn’t be able to just stumble across your service and find out what methods it provides etc. This however also makes it impossible for another developer outside your organization to do an Add Service Reference to your service.

    • you could define and use a custom binary http binding – only other clients with this setup could even call your service. The binary http binding would bring some speed improvements, too. See this blog post on how to do this.

    • you need to somehow identify those callers that are allowed in – one possible method would be to put an extra header into your WCF messages that you then check for on the server side. This would simply make sure that a casual hacker who discovers your service and figures out the binary http binding would still be rejected (at least for some time). See this blog post here on how to implement such a message inspector extension for WCF.

    • the ultimate step would be to install a digital certificate on the client machine along with your service. You would then set up your client side proxy to authenticate with the service using that certificate. Only client machine that have that certificate could then call into your service.

    It really depends on how far you want to go – WCF gives you a lot of options, but you need to decide how much effort you want to put into that .

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

Sidebar

Related Questions

I have developed a Web service using WCF Service Application. This service application is
I have a drawing application developed in winforms C# which uses many System.Drawing.Bitmap object
I have developed a Phone Gap application using this link . Application is running
I have developed and android Application and export as APK file to publish this
I have developed a Facebook application using Flash as3. In this application when ever
I ve developed a c# winforms application for sending sms by using this article
I have developed a simple C# Winforms application that loads MS-Word 2007 documents via
I'm new to this group but have recently developed a taste for c#. Now
I have application written in C# WinForms developed in Visual Studio 2010 Professional. I
I have a WCF server library and client[Winform], i launch the server using a

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.