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

Ask A Question

Stats

  • Questions 495k
  • Answers 495k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try this one... SELECT CodeField, COUNT(CodeField) FROM table GROUP BY… May 16, 2026 at 11:20 am
  • Editorial Team
    Editorial Team added an answer I use some code like this to achieve a similar… May 16, 2026 at 11:20 am
  • Editorial Team
    Editorial Team added an answer Yes, and no. Yes, it is possible to view the… May 16, 2026 at 11:20 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have developed a small C# form application which calls a web service. Everything
I have to develop an application with which my client will do visual design.
I have developed an application which allows the user to switch between themes. I'm
I have recently joined a new developing project building a thick client application using
I am starting a new Winforms application, and I've always used traditional ADO.NET methods
I'm displaying prices on a DataGridView (on a WinForms application developped in C# on
I have developed some software(vb.net) that records fees paid by the students. The purpose
We have developed a website that has quite a lot of flash in it
This is a simple question: what are the most popular/used/developed (libraries a plus) functional
Possible Duplicate: When do you use the “this” keyword? If I have the following

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.