Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am developing web server (C#). How can I specify single network interface that can be used for communication with clients and restrict others? I cannot simply disable them because I might use them for connection to the WCF service.

Is that even possible?

share|improve this question

migrated from Sep 22 '11 at 13:04

This question came from our site for professional and enthusiast programmers.

You could bind an IP address to that NIC and then configure your server to only listen to requests on that IP address.

share|improve this answer
Could you please be more specific? IIS binds to by default I guess, and I still need to have possibility to use other NICs. – Xeon Sep 21 '11 at 14:30
This needs to go to ServerFault or similar -- what you're purposing is typically going to be administered by a non-programmer and there are standard ways to do these things based on the specific stack you're using. Now that we've established you're using IIS an admin should be able to help you. I'll flag the question to go there. – Cymen Sep 21 '11 at 14:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.