Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Sep 22 '11 at 13:04

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

1 Answer 1

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 0.0.0.0:80 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

 
discard

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